0

xep-0054によると、バックエンドから提供されたURIを使用してPHOTOvCard属性を設定しようとしています。

<!-- Photograph property. Value is either a BASE64 encoded
binary value or a URI to the external content. -->
<!ELEMENT PHOTO ((TYPE, BINVAL) | EXTVAL)>

私は拡張機能で使用ejabberdctlしています。mod_admin_extra

ejabberdctl set_vcard foo chat.myjabber.com PHOTO http://link_to_image.jpg
ejabberdctl set_vcard2 foo chat.myjabber.com PHOTO EXTVAL http://link_to_image.jpg

しかし、機能していないようです。pidginとpsyには何も表示されません(値はデータベースに正しく保存されています)

Archlinux、Pidgin 2.10.6(libpurple 2.10.6)、ejabberd2.1.11を実行しています

4

1 に答える 1

1

https://github.com/processone/ejabberd/issues/47で尋ねたところ、人気のあるクライアントのほとんどは EXTVAL をサポートしていません

xep-0054 は、言う xep-0153 と矛盾しています

4.5 XML Syntax

The following rules apply to the XML syntax:

The <PHOTO/> element SHOULD contain a <BINVAL/> child whose XML character data is Base64-encoded data for the avatar image.

The <PHOTO/> element SHOULD NOT contain an <EXTVAL/> that points to a URI for the image file.

The <PHOTO/> element MUST NOT contain the avatar image itself.

The <PHOTO/> element SHOULD contain a <TYPE/> child whose XML character data specifies the content-type of the image data. The XML character data SHOULD be "image/gif", "image/jpeg", or "image/png".

The <PHOTO/> element MUST NOT possess a 'mime-type' attribute.
于 2013-01-15T12:28:32.077 に答える