mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 17:05:11 +00:00
[MOD] Use <pre>, be a little more stringent on oID
This commit is contained in:
parent
ee004ca9c0
commit
9e34ffe665
4 changed files with 10 additions and 9 deletions
|
|
@ -280,20 +280,16 @@ XEP393ToXMLString(XEP393Element *xepd)
|
|||
|
||||
Stream *writer;
|
||||
char *ret = NULL;
|
||||
size_t i;
|
||||
if (!xepd)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
root = XMLCreateTag("ROOT");
|
||||
root = XMLCreateTag("pre");
|
||||
ShoveXML(xepd, root);
|
||||
|
||||
writer = StrStreamWriter(&ret);
|
||||
for (i = 0; i < ArraySize(root->children); i++)
|
||||
{
|
||||
XMLEncode(writer, ArrayGet(root->children, i));
|
||||
}
|
||||
XMLEncode(writer, root);
|
||||
XMLFreeElement(root);
|
||||
StreamFlush(writer);
|
||||
StreamClose(writer);
|
||||
|
|
|
|||
|
|
@ -211,7 +211,7 @@ ParseeGetBridgedUserI(ParseeData *data, XMLElement *stanza, char *force)
|
|||
if (!is_chat)
|
||||
{
|
||||
has_anon = ServerHasXEP421(data, xmpp_from);
|
||||
is_anon = has_anon;// && StrEquals(xmpp_from, decode_from);
|
||||
is_anon = has_anon && StrEquals(xmpp_from, decode_from);
|
||||
}
|
||||
|
||||
if (is_anon || force)
|
||||
|
|
|
|||
|
|
@ -74,7 +74,12 @@ PEPVCardEvent(PEPManager *m, XMLElement *stanza, XMLElement *item)
|
|||
AddURIField(vcard, "url", REPOSITORY);
|
||||
AddURIField(vcard, "url", "https://kappach.at/parsee");
|
||||
|
||||
AddTextField(vcard, "note", "This is the Parsee user account.");
|
||||
AddTextField(vcard,
|
||||
"note",
|
||||
"This is the Parsee system account. " "\n"
|
||||
"Admins may execute ad-hoc commands through this "
|
||||
"account."
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue