-
lovetox
i want to create blocking list for muc users on pubsub, every item is one user that is blocked, though i struggle a bit with the item id. as it needs to be unique it cant be the room jid alone. my idea was something like "roomjid:occupant-id". but now i question if ":" is a good separator. it could be in the occupant-id
-
lovetox
but if i got this correct, it cannot be in a bare jid,which the muc would be
-
lovetox
so it should be safe splitting on this separator on first occurence from left
-
lovetox
anyone has a better approach or an opinion about that?
-
lovetox
could i run into a occupant id which has not allowed characters in an attribute?✎ -
lovetox
could i run into a occupant id which has not allowed characters for an attribute? ✏
-
singpolyma
Why not roomjid/occupantid ?
-
singpolyma
There are no not allowed characters for an attribute
-
lovetox
good idea with the / seems obvious
-
moparisthebest
Why not just store it locally?
-
moparisthebest
#1 it's kind of a privacy issue unless users know you are uploading their blocks #2 maybe users want different blocklists for different computers, I know at least a few IRC users who have one blocklist for work and none or smaller for home
-
singpolyma
Users in general expect blocks to be uploaded and sync'd and occupant ids are hardly full of details the server doesn't already know
-
moparisthebest
I just listed a use case where they don't lol
-
moparisthebest
servers don't currently store occupant-id either
-
singpolyma
They do if you get a pm
-
singpolyma
Otherwise they don't usually choose to store, sure, but it's not secret information
-
moparisthebest
store vs not is already a huge difference