]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge remote-tracking branch 'upstream/master' into social-master
authorRoland Haeder <roland@mxchange.org>
Sat, 27 Feb 2016 21:09:23 +0000 (22:09 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 27 Feb 2016 21:09:23 +0000 (22:09 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
12 files changed:
1  2 
actions/foaf.php
actions/shownotice.php
classes/Notice.php
lib/attachmentlist.php
lib/default.php
lib/util.php
plugins/OStatus/OStatusPlugin.php
plugins/OStatus/classes/Ostatus_profile.php
plugins/OStatus/lib/salmonaction.php
plugins/OpenID/actions/openidserver.php
plugins/RegisterThrottle/RegisterThrottlePlugin.php
plugins/WebFinger/WebFingerPlugin.php

Simple merge
Simple merge
Simple merge
Simple merge
diff --cc lib/default.php
Simple merge
diff --cc lib/util.php
Simple merge
Simple merge
index ef6099c883886bb692a2b01aab34ef8bb1ba80c8,d1293728d2e1076edf83c9a9fb5181ec7802fe38..c8d77a99a689effc6656b8613c4ab8fff07d33ad
@@@ -97,7 -97,8 +97,8 @@@ class SalmonAction extends Actio
          assert($this->activity instanceof Activity);
          assert($this->target instanceof Profile);
  
 -        common_log(LOG_DEBUG, "Got a " . $this->activity->verb);
 +        common_debug('Got a ' . $this->activity->verb);
          try {
              $options = [ 'source' => 'ostatus' ];
              common_debug('Save salmon slap directly with Notice::saveActivity for actor=='.$this->actor->getID());
index 1edc3d8971351790ac70f9fc22418800814a6237,d902947d934da0c59ffc441c387cf6d8e1db06de..942eab27cfe4394d77b69d66559b21e67ce4ce43
@@@ -141,11 -162,11 +162,11 @@@ class WebFingerPlugin extends Plugi
      /**
       * Add a link header for LRDD Discovery
       */
 -    public function onStartShowHTML($action)
 +    public function onStartShowHTML(Action $action)
      {
          if ($action instanceof ShowstreamAction) {
-             $acct = 'acct:'. $action->getTarget()->getNickname() .'@'. common_config('site', 'server');
-             $url = common_local_url('webfinger') . '?resource='.$acct;
+             $resource = $action->getTarget()->getUri();
+             $url = common_local_url('webfinger') . '?resource='.urlencode($resource);
  
              foreach (array(Discovery::JRD_MIMETYPE, Discovery::XRD_MIMETYPE) as $type) {
                  header('Link: <'.$url.'>; rel="'. Discovery::LRDD_REL.'"; type="'.$type.'"', false);