Browse Source

Implement XEP-0469: Bookmark Pinning

pull/1185/head
Timothée Jaussoin 3 years ago
parent
commit
436382b140
  1. 1
      CHANGELOG.md
  2. 4
      app/Conference.php
  3. 7
      doap.xml

1
CHANGELOG.md

@ -45,6 +45,7 @@ v0.21 (trunk)
* Add basic support of XEP-0472: Pubsub Social Feed with Gallery view and toggle in the Communities
* Drop the outdated FromModlToEloquent migration script
* Remove the Bookmark synchronization feature, the server is taking care of it
* Implement XEP-0469: Bookmark Pinning
v0.20
---------------------------

4
app/Conference.php

@ -12,7 +12,7 @@ class Conference extends Model
protected $with = ['contact'];
public static $xmlnsNotifications = 'xmpp:movim.eu/notifications:0';
public static $xmlnsPinned = 'xmpp:movim.eu/pinned:0';
public static $xmlnsPinned = 'urn:xmpp:bookmarks-pinning:0';
public static $notifications = [
0 => 'never',
1 => 'quoted',
@ -153,7 +153,7 @@ class Conference extends Model
}
if ($item->conference->extensions && $item->conference->extensions->pinned
&& $item->conference->extensions->pinned->attributes()->xmlns == self::$xmlnsPinned) {
&& in_array($item->conference->extensions->pinned->attributes()->xmlns, [self::$xmlnsPinned, 'xmpp:movim.eu/pinned:0'])) {
$this->pinned = true;
unset($item->conference->extensions->pinned);
}

7
doap.xml

@ -487,6 +487,13 @@
<xmpp:version>0.1.0</xmpp:version>
</xmpp:SupportedXep>
</implements>
<implements>
<xmpp:SupportedXep>
<xmpp:xep rdf:resource="https://xmpp.org/extensions/xep-0469.html"/>
<xmpp:status>complete</xmpp:status>
<xmpp:version>0.1.0</xmpp:version>
</xmpp:SupportedXep>
</implements>
<implements>
<xmpp:SupportedXep>
<xmpp:xep rdf:resource="https://xmpp.org/extensions/xep-0472.html"/>

Loading…
Cancel
Save