Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
What should uploaded content look like on IRC channels? #258
Comments
Kegsay
added
the
issue-gathering
label
Oct 26, 2016
|
I prefer there being text too as random URL without context can look shady and leave unclicked. |
jansol
commented
Oct 26, 2016
|
No IRC user I know sends anything other than the URL when pastebinning stuff. And for convenience reasons the entire message should fit on a single line in a standard 80-column terminal. Of course here the pastebinning is not always intended so some explanation might be warranted. How "smart" do we want to be? Pastebinning triple-backtick-quoted text rarely needs an explanation, so triple backticks could just be replaced with URLs in most cases.
Well, it's a URL on your HS... |
|
Generally pastebins are easy to recognise as pastebins based on the URL (doesn't apply to https://matrix.org/...) and while I know the URL belongs to my homeserver, does random IRC user know what is homeserver or even Matrix other than movie trilogy? |
jansol
commented
Oct 26, 2016
|
I hope your random IRC user at least knows where they are telling their client to connect. Especially if they are the paranoid sort... It shouldn't be difficult to recognize the URL based on that. Another problem with adding unnecessary text is that it'll mess up non-english channels. |
ThatGeoGuy
commented
Oct 26, 2016
|
I am personally fine with just a link, but maybe there's a third option? I know a lot of channels have bots that lookup links that are pasted and provide some information about them. In one channel I'm on in Rizon, the channel bot will speak and provide some context about links posted. e.g. for a Youtube video:
Personally I think this sort of feature is best left to bots on the IRC side, since it can be customized to do what the users in a channel want, and depending on how you program the bot you can have it post different things depending on the MIME type associated with the URI or not. Note that this gets annoying if you have two separate services / bots that provide this behaviour, which is why I think URLs should be left alone, and handled by bots IRC side, since there will be some variance from channel to channel whether or not this feature is useful or desired. Imagine what that would look like with the above example:
There's a lot of information there, and most of it is redundant. In my experience most IRC users don't want to see all of that, which is why IGNORE is often used on everything from joins, parts, etc so that there's a higher signal to noise ratio in the channel. Of course if you could Just my 2 cents, I'm happy to clarify anything or provide more context if necessary. |
|
Most of IRC bots I have encountered will just tell |
jansol
commented
Oct 27, 2016
|
In this case, since the bridge is actually the one who does the pastebinning AND puppets the bot, it knows a lot more about the link than 3rd party bots would. So no problem with the lack of metadata in the link itself? Also, 3rd party bots would also be bridged back to matrix, further clobbering the discussion and confusing the potato out of matrix users who have no clue what link the bot is referring to, since the matrix side doesn't see it. |
Kegsay
referenced this issue
Oct 27, 2016
Merged
Restructure uploaded file bridging IRC messages to IRC actions #256
ThatGeoGuy
commented
Oct 27, 2016
I actually didn't even consider this, but this is a good point to bring up. Maybe the point is to ask that bot-writers ignore URIs to Matrix, but I doubt that would get much traction (e.g. why should I have to re-write my bot because some user from Matrix joined my channel?). That said, if you upload a file and a URI bot describes a "link" that isn't seen Matrix-side, it should be pretty obvious what the bot is describing. The only confusion I can see here is if you accidentally trigger uploading to a pastebin-like service, in which case you'll wonder why the bot is describing your message. |
TJuberg
commented
Nov 1, 2016
|
Pastebinning should at minimum be configurable so it can be disabled on a per room basis. |
Pastebinning support isn't for convenience, it's to protect the bridge from getting k-lined due to flooding channels over a prolonged period. See the relevant issue for background on this. We do now use IPv6 so the impact would just be the client's connection rather than the entire bridge, which helps, but given how people can naively trigger this by putting code blocks into rooms, I'm not willing to make this configurable by users. Back on topic, it looks like IRCCloud just put the URL for images and the like, without any sugar-coating with "so-and-so uploaded..":
This may set some precedent if people are already familiar with how IRCCloud does things. |
Kegsay
referenced this issue
Nov 9, 2016
Closed
Restructure message for uploaded content / long posts to avoid confusion #239
|
@Mikaela can you help me out here? I seem to recall that we had to change the IRC bridge from sending |
jansol
commented
Nov 9, 2016
|
IIRC it was because apparently some clients think it's a grand idea to ring the system bell every time a NOTICE is received. |
|
I hope you don't mind me pasting logs.
|
|
Right, that was it, thanks. So that rules out
And we need to decide for:
|
|
I would go with Plain URL with metadata as the metadata can make the URL less weird and threatening even if someone didn't trust the metadata. It wouldn't take that much space and work for channels that don't have those bots. |
eternaleye
commented
Nov 9, 2016
|
@Kegsay: Hm, not sure it does rule out " |
|
@eternaleye My bad, wrong words. |
|
So are people generally happy with:
What about pastebinning long messages? |
msackman
commented
Nov 26, 2016
•
|
If it's plain text content, please just pass it straight through to IRC. IRC users do not expect any fancy formatting or highlighting and will be annoyed by having to copy and paste out a URL. People who choose to use IRC are perfectly happy to read non-syntax-highlighted code if it's pasted in. If it's some sort of richer media, then sure, do something behind a URL and come up with something sensible to add to the IRC channel (I would very much be in favour of whatever is pasted including the MIME type of the content behind the URL). Just read #258 (comment) so that rather rules out the above sadly. In which case, please make it clear to the sender that a multiline message will end up behind a URL, which will likely annoy IRC users. |
eternaleye
commented
Nov 26, 2016
•
|
@msackman: Not viable. Matrix supports multi-line messages, which will get users disconnected for flooding on IRC. There needs to be some manner of resolving the impedance mismatch, and pastebinning long messages is what has been chosen. EDIT: Ah, missed your edit. |
msackman
commented
Nov 26, 2016
|
@eternaleye Having read more about this issue, I understand that. My thought then is that when someone is sending a message, if it's known it's going to an IRC channel and it's known that the message is going to have to be replaced by a URL, then the user sending the message should be warned about this. |
eternaleye
commented
Nov 27, 2016
•
|
@msackman: That's also nonviable. Consider the case of a bridged room, with a Matrix user connected via federation. That is:
The user's message may have been sent, accepted, and federated a significant amount of time before (though 30s suffices for explanation). The bridge cannot prevent the user from submitting it to HS1, nor HS1 federating it to HS2. At that point, it has four choices:
Of the four, 1 and 2 are completely nonviable, 3 is nonviable in realistic circumstances around federation (and is a huge pain for users), and 4 is the current approach. In addition, clients may very well not be aware that a room is bridged - any client side approach is thus also nonviable, as well as significantly increasing the load on client implementors (something Matrix works quite hard to minimize) |
msackman
commented
Nov 27, 2016
|
@eternaleye Thank you for the explanation. From a technical pov, I can appreciate the issue. I just hope you do take into account the fact that IRC users are stakeholders in this issue too. Currently I'm in the situation where members of some of my channels are using matrix.org because it allows them to get through company firewalls, so the fact they can be there at all is great. However, when sharing code, the fact that it uses a non-standard pastebin, does not do any syntax highlighting (and so offers no advantage to IRC users), and so just hides the plain content behind a URL is frustrating. Especially as the matrix users don't realise what's happening, so at least half the room is quite confused. |
eternaleye
commented
Nov 27, 2016
|
@msackman: Thank you for the additional information on the issues - one thing that might improve the situation is that there are ways in which the pastebin itself could be improved to handle the problems you describe. For one, Matrix messages are rich-text, and the pastebin for long messages taking advantage of that (and syntax-highlighting code elements) is something that may very well be worth doing. I'll submit a separate ticket for that. As for it being a nonstandard pastebin, there's a tradeoff there - specifically, it uses the file-upload API of the Matrix homeserver itself, rather than any dedicated pastebin service. Relying on a pastebin service would be an additional dependency (and a new API to support), while extending file-upload to have a pastebin UI would be a significant effort (and bloat an API into a UI). On the topic of hiding it behind a plain URL... well, that's what the discussion here is about: How to better structure the actual message sent to IRC, so the behavior is clear to users. |
eternaleye
referenced this issue
Nov 27, 2016
Closed
When pastebinning long messages, (optionally) use the rich-text form #291
|
@eternaleye: I agree with everything you've said. What do you think we should do for pastebinning long messages? Do you think |
|
Well no one has said anything to the contrary, so |
This was referenced Jan 9, 2017
|
Totally happened too. |
Kegsay
closed this
Mar 23, 2017
|
I found old todo about this which I forgot to comment earlier. The current format is: And while this isn't an issue with the IRC bridge, being /me TeleIRC converts it to
Would it be possible to enclose the link to
|
|
It's a shame that the As an aside, please open a new issue for this and xref this issue, thanks! (This makes it easier to see what actions need to be done without having to wade through historical comments). |
Kegsay commentedOct 26, 2016
When a Matrix user uploads an image/file/etc to a room, the IRC bridge needs to convert that into text to send into the IRC channel. What should this text look like?
Related: When a Matrix user sends a block of text into a room, the IRC bridge "pastebins" the content by uploading it as a
.txtfile, which then is sent into the IRC channel. What should this text look like?There seems to be 2 camps of people who want just the raw link vs people who want a wordier "so-and-so uploaded a thing", and I am using this issue to build consensus.
See: