Skip to content
This repository has been archived by the owner on Apr 1, 2021. It is now read-only.

Messages dropping that contain only an attached image #17

Open
chefsas opened this issue Jan 4, 2021 · 3 comments
Open

Messages dropping that contain only an attached image #17

chefsas opened this issue Jan 4, 2021 · 3 comments

Comments

@chefsas
Copy link

chefsas commented Jan 4, 2021

This line is appearing in my terminal output when a message contains no content other than an attached image. I've included screenshots of my config file (the section specific to this source) and the source message for reference. You can see in the log the very next message contained text and redirected normally. Rich embeds with attached images in other sources are working great. It's just when someone directly posts just an image in a message with no accompanying text that it seems to do this.

Thank you so much for this code. It's been a huge life saver for me to consolidate information from various sources and redirect them to individual channels on my own personal server for my own use. Being able to just go one place to get a ton of information is invaluable to me.
Terminal Output
Config File

@MitchTalmadge
Copy link
Owner

Hiya! Thanks for the report! I think you are right, I might have messed this up in the last release. I probably can't get to this until the weekend but I'll try to solve it quickly :)

@chefsas
Copy link
Author

chefsas commented Feb 4, 2021

I think I figured it out. When there's nothing but the image in the message, it doesn't seem to like it. I moved the code for the header and simplified it because I didn't like two messages for every message coming through. So now mine says "From: blahblah" then a new line and the rest of the message. Anyway, when I did that, I noticed the messages with only an image started coming through just fine.

@nihirisuto
Copy link

nihirisuto commented Mar 2, 2021

I think I figured it out. When there's nothing but the image in the message, it doesn't seem to like it. I moved the code for the header and simplified it because I didn't like two messages for every message coming through. So now mine says "From: blahblah" then a new line and the rest of the message. Anyway, when I did that, I noticed the messages with only an image started coming through just fine.

Could you share the changes you made here? I just ran into this and was excited to see an issue was already open and would love to see how you solved that. Also very interested in making the relay a single line reply

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants