-
lovetox
About Message Moderation
-
lovetox
there is a paragraph about MAM Tomestones
-
lovetox
and i wonder why would that be important for me as client?
-
lovetox
what can i not do if i simply drop all tombstones?
-
lovetox
is it just so i can show the user that something was moderated?
-
lovetox
i think its ok to show the user something was moderated if he already saw the message maybe
-
lovetox
but if we talk about messages that the user did not even see, thats the case when i receive a tombstone via MAM .. how useful is it to tell someone that something was moderated
-
singpolyma
Yes, it's so you have the option to show that something was moderated
-
singpolyma
I like this because otherwise you get a history full of people reacting to something that isn't there
-
lovetox
but it is not there
-
lovetox
you can not show to what they reacted ..
-
lovetox
but yeah .. i just wonder if a spammer spams your channel
-
lovetox
and moderator removes all
-
lovetox
and you show the user still 50 messages but all "moderated" ..
-
singpolyma
You can show they reacted to "something worth moderating"
-
Zash
What do you do with messages locally when they are moderated?
-
lovetox
set a flag that they are moderated
-
Zash
So I would suggest creating an otherwise empty message entry with the moderated flag already set.
-
lovetox
with content that gets moderated after i downloaded it, i can at least show the user what was moderated if he wishes
-
lovetox
but with tombstones, its just ok someone moderated something
-
Zash
yup
-
lovetox
but yeah .. maybe i should do it like that
-
lovetox
Zash if i have you here, the occupant-id thing is independent of anon setting for muc right?
-
Zash
in prosody?
-
lovetox
No please tell me for all server implementations in the world :D
-
lovetox
yes, for prosody
-
Zash
independent, yes
-
lovetox
ok great, i hope nobody gets a horrible idea and does it only for anon mucs
-
Zash
is the XEP silent or unclear?
-
Menel
If 20 messages are moderated in a row, it would be great if the client would just show one message, telling that once or something
-
Zash
pretty sure you also get a second message with the moderation action itself
-
Zash
in the (far) future with a fastening collation ready database schema, we could probably do fancier things
-
Zash
like show moderated original messages to moderators
-
Zash
but now it's just overwritten
-
lovetox
im really scared about collation
-
lovetox
i hope this does not break all assumptions
-
lovetox
i definitly would not do it for something like retraction or moderation
-
lovetox
its so rare events in the grand scheme of things, that it makes more work than gain
-
Zash
my thought was essentially that each message would need its own archive, per type of thing
-
lovetox
stuff like chatstates / markers, are a much better target
-
Zash
so [user@host][store][stanza-id][class][number]
-
lovetox
hm can this be efficiently queried via MAM then? if you have multiple tables (archives) i guess?
-
Zash
We only have two tables right now, one for key-value stuff (most account data) and one for _ordered_ key-value stuff (archives, offline messages, pep items)
-
lovetox
i think i found something problematic
-
lovetox
https://xmpp.org/extensions/xep-0425.html
-
lovetox
if occupant-id is supported
-
lovetox
it is included in the tombstone <moderated> element
-
lovetox
so i guess to id the occupant who moderated the message
-
lovetox
the same occupant-id is not included in the <moderated> element if you receive it from the MUC live
-
lovetox
and because the moderated live message comes from the bare room jid
-
lovetox
i guess the server would not include *any* occupant-id
-
lovetox
not even outside of the <moderated> element
-
Zash
oversight?
-
pep.
Is there a place where MUC log retention time is exposed?
-
Zash
I don't think so
-
pep.
Could be done easily enough I guess? Somewhere in disco just like other config options? As an "unsigned int or infinite"?
-
Zash
seconds or days?
-
Zash
https://en.wikipedia.org/wiki/ISO_8601#Durations is a thing, but I don't think we use it anywhere
-
pep.
Seconds I guess, but whatever people want✎ -
pep.
Seconds I guess, but whatever people want really ✏