User Avatars

I configured ejabberd without vcard support hoping to create an anonymous service.
I've noticed that clients like Adium and iChat are still able to send avatar photos and I can see them on clients like Pidgin and Psi.
I'm assuming this is occurring through the pubsub module somehow, although I can't find the avatar data anywhere in the server database (mysql).
Is it possible to configure mod_pubsub without avatar support? (Is this xep-0084?)
And how do I go about removing any existing avatars?
Thanks.

XEP84 uses mod_pubsub's PEP, stored in Mnesia

dfisher wrote:

I've noticed that clients like Adium and iChat are still able to send avatar photos and I can see them on clients like Pidgin and Psi.
I'm assuming this is occurring through the pubsub module somehow,
Is it possible to configure mod_pubsub without avatar support? (Is this xep-0084?)

I could find in Adium website any mention about the protocols it supports. If you disabled mod_vcard and it still shows avatar, then it probably uses XEP-0084, which uses PEP support, implemented in ejabberd's mod_pubsub PEP plugin.

PEP: XEP-0163: Personal Eventing Protocol

dfisher wrote:

I can't find the avatar data anywhere in the server database (mysql).

If the avatar is stored by Adium in the account PEP, it's stored by mod_pubsub. That module uses the internal Mnesia database. You can see the Mnesia tables size in the ejabberd Web Admin -> Nodes -> your node -> Database. Probably when a new avatar is stored, some pubsub table increases its size.

dfisher wrote:

Is it possible to configure mod_pubsub without avatar support? (Is this xep-0084?)

You can disable PEP support by simply disabling the "pep" plugin in mod_pubsub options in ejabberd.cfg. Or disable mod_pubsub completely.

dfisher wrote:

And how do I go about removing any existing avatars?

I imagine when you disable pep, the avatars are no longer accessible. You can also delete the whole pubsub Mnesia table: Stop ejabberd, delete the files pubsub* in Mnesia's spool dir; start ejabberd.

Can XEP84 be disabled in PEP?

Quote:

You can disable PEP support by simply disabling the "pep" plugin in mod_pubsub options in ejabberd.cfg. Or disable mod_pubsub completely.

Is it possible to just disable XEP84 inside of PEP?
What other functionality would I lose by disabling PEP?
Seems like I would lose all presence subscriptions and I just want to turn off avatar support.

XEP84 is a client protocol

dfisher wrote:

Is it possible to just disable XEP84 inside of PEP?

You already asked that, and I already answered.

Do you want more explicit answer?

  • ejabberd implements Pubsub and PEP.
  • ejabberd does not implement XEP84.
  • In ejabberd you can enable or disable support for PubSub and PEP.
  • In ejabberd you cannot disable support for XEP84, because ejabberd does not implement XEP84.

Search the source code of ejabberd: you will not find anywhere the word "avatar".

dfisher wrote:

What other functionality would I lose by disabling PEP?

You cannot ask this question to the server. The server only cares about PEP management, not about what content your clients will, or may or may not store there.

dfisher wrote:

I just want to turn off avatar support.

PEP is implemented both in client and server, so you can disable in either of them. XEP84 is exclusively implemented in the client, so you can only disable XEP84 in your clients.

dfisher wrote:

Seems like I would lose all presence subscriptions and I just want to turn off avatar support.

Instead of 'seems like ...', you could try some of the solutions that I provided.

That I my last collaboration in that thread.

Syndicate content