]>
git.mxchange.org Git - quix0rs-gnu-social.git/log
Mikael Nordfeldth [Mon, 10 Jul 2017 12:10:10 +0000 (14:10 +0200)]
Patch DB before release, weird use of count()
Mikael Nordfeldth [Mon, 10 Jul 2017 11:46:07 +0000 (13:46 +0200)]
Updating HTMLPurifier to 4.9.3
Source: https://htmlpurifier.org/download
Release date: 2017-06-19
Mikael Nordfeldth [Mon, 10 Jul 2017 11:33:11 +0000 (13:33 +0200)]
Update PEAR DB to 1.9.2
Source: https://pear.php.net/package/DB
Release date: 2015-11-24
Mikael Nordfeldth [Mon, 10 Jul 2017 11:28:40 +0000 (13:28 +0200)]
Updating PEAR Net_URL2 to 2.1.2
Source: https://pear.php.net/package/Net_URL2
Release date: 2016-04-18
Mikael Nordfeldth [Mon, 10 Jul 2017 11:25:04 +0000 (13:25 +0200)]
Update PEAR DB_DataObject to 1.11.5
Source: https://pear.php.net/package/DB_DataObject
Release date: 2015-11-10
Mikael Nordfeldth [Mon, 10 Jul 2017 10:53:13 +0000 (12:53 +0200)]
PEAR Net_SMTP updated to 1.8.0
Source: https://pear.php.net/package/Net_SMTP
Release date: 2017-04-06
Mikael Nordfeldth [Sun, 9 Jul 2017 21:09:03 +0000 (23:09 +0200)]
PEAR Net_Socket updated to 1.2.2
Source: https://pear.php.net/package/Net_Socket
Release date: 2017-04-13
Mikael Nordfeldth [Sun, 9 Jul 2017 20:49:49 +0000 (22:49 +0200)]
change default timeout setting for HTTPClient
Mikael Nordfeldth [Sun, 9 Jul 2017 20:17:52 +0000 (22:17 +0200)]
Updating HTTP_Request2 to 2.3.0
Source: https://pear.php.net/package/HTTP_Request2
Release date: 2016-02-13 15:24 UTC
Mikael Nordfeldth [Sun, 9 Jul 2017 18:34:44 +0000 (20:34 +0200)]
Remove debug call and change how connect_timeout is set
Mikael Nordfeldth [Sun, 9 Jul 2017 18:07:18 +0000 (20:07 +0200)]
Configure a default timeout for HTTP connections at 60s
No requests we do externally should ever take more than 60 seconds. This
could probably be changed for downloading video or whatever for any cache
plugins that want to store data locally, but in general I think even 60s
is way longer than I expect any outgoing requests should take.
This affects everything using HTTPClient, our helper class, and thus all
hub pings, subscription requests, etc. etc.
The value, afaik, includes connect_timeout and if it takes 10 seconds to
establish a connection only 50 seconds is available to transfer data.
Mikael Nordfeldth [Thu, 22 Jun 2017 12:37:32 +0000 (14:37 +0200)]
Endless loop nesting on ensureHub failure now fixed
Essentially I was missing a negation on a test if we were in rediscovery mode.
Mikael Nordfeldth [Wed, 21 Jun 2017 23:37:43 +0000 (01:37 +0200)]
Fulltext indexes are supported in InnoDB since MariaDB 10.0.15
Mikael Nordfeldth [Wed, 21 Jun 2017 22:30:38 +0000 (00:30 +0200)]
set a 'rediscovered' parameter to avoid nesting into an ensureHub loop forever
Mikael Nordfeldth [Tue, 30 May 2017 19:37:53 +0000 (21:37 +0200)]
GNU social avatar by moshpirit / Alberto
Mikael Nordfeldth [Sat, 6 May 2017 13:25:44 +0000 (15:25 +0200)]
Since ActivityContext::CONVERSATION changed to 'conversation' instead of 'ostatus:conversation' we need to add it ourselves
the xmlstringerthinger doesn't really use namespaces afaik
Mikael Nordfeldth [Sat, 6 May 2017 12:48:04 +0000 (14:48 +0200)]
What just happened? Not sure if me or git caused duplicate code.
Mikael Nordfeldth [Sat, 6 May 2017 12:40:06 +0000 (14:40 +0200)]
Merge branch 'master' into mmn_fixes
Mikael Nordfeldth [Sat, 6 May 2017 11:54:42 +0000 (13:54 +0200)]
...and make sure we checkschema on Notice_prefs on upgrade...
Mikael Nordfeldth [Sat, 6 May 2017 11:24:11 +0000 (13:24 +0200)]
Revert some of
8a4bec811b07a0ed9d76d0aceb03855c91a67242
use Notice_prefs instead of adding a new field. The rationale here
is simply that the Notice table was _huge_ and I rant into issues
with /tmp filling up when altering the tables. So let's just create
a new table instead.
Mikael Nordfeldth [Sat, 6 May 2017 11:22:10 +0000 (13:22 +0200)]
Notice_prefs now available (I just copied Profile_prefs)
Mikael Nordfeldth [Sat, 6 May 2017 10:38:34 +0000 (12:38 +0200)]
Output proper HTML and XML headers for single Atom entry
RFC5023 <https://tools.ietf.org/html/rfc5023> specifies that the
content type parameter 'type=entry' should be used to clarify data.
Mikael Nordfeldth [Sat, 6 May 2017 10:25:50 +0000 (12:25 +0200)]
Output selfLink from notice asActivity[Object]
Mikael Nordfeldth [Sat, 6 May 2017 10:25:27 +0000 (12:25 +0200)]
Return false immediately if $url is empty for common_valid_http_url
Mikael Nordfeldth [Sat, 6 May 2017 10:15:54 +0000 (12:15 +0200)]
Notices start saving selfLink from activities/objects
Mikael Nordfeldth [Sat, 6 May 2017 09:34:38 +0000 (11:34 +0200)]
Handle selfLink in ActivityObject
Mikael Nordfeldth [Sat, 6 May 2017 11:54:42 +0000 (13:54 +0200)]
...and make sure we checkschema on Notice_prefs on upgrade...
Mikael Nordfeldth [Sat, 6 May 2017 11:24:11 +0000 (13:24 +0200)]
Revert some of
8a4bec811b07a0ed9d76d0aceb03855c91a67242
use Notice_prefs instead of adding a new field. The rationale here
is simply that the Notice table was _huge_ and I rant into issues
with /tmp filling up when altering the tables. So let's just create
a new table instead.
Mikael Nordfeldth [Sat, 6 May 2017 11:22:10 +0000 (13:22 +0200)]
Notice_prefs now available (I just copied Profile_prefs)
Mikael Nordfeldth [Sat, 6 May 2017 10:38:34 +0000 (12:38 +0200)]
Output proper HTML and XML headers for single Atom entry
RFC5023 <https://tools.ietf.org/html/rfc5023> specifies that the
content type parameter 'type=entry' should be used to clarify data.
Mikael Nordfeldth [Sat, 6 May 2017 10:25:50 +0000 (12:25 +0200)]
Output selfLink from notice asActivity[Object]
Mikael Nordfeldth [Sat, 6 May 2017 10:25:27 +0000 (12:25 +0200)]
Return false immediately if $url is empty for common_valid_http_url
Mikael Nordfeldth [Sat, 6 May 2017 10:15:54 +0000 (12:15 +0200)]
Notices start saving selfLink from activities/objects
Mikael Nordfeldth [Sat, 6 May 2017 09:34:38 +0000 (11:34 +0200)]
Handle selfLink in ActivityObject
Mikael Nordfeldth [Tue, 2 May 2017 19:12:17 +0000 (21:12 +0200)]
default to #addtag on !group mention
Mikael Nordfeldth [Tue, 2 May 2017 16:58:22 +0000 (18:58 +0200)]
Fixed the parsing of ostatus:conversation etc.
Conversation will now start storing remote URL
The namespace features don't work the way they were written for here
so I fixed that, making the ostatus: namespace properly looked up and
then the homegrown getLink function looks for what is back-compat with
StatusNet etc. if I remember correctly.
Mikael Nordfeldth [Tue, 2 May 2017 07:18:43 +0000 (09:18 +0200)]
Less raw database dumps in debug please
Mikael Nordfeldth [Tue, 2 May 2017 07:14:30 +0000 (09:14 +0200)]
Fix issues with non-subscribed Ostatus_profiles
Mikael Nordfeldth [Tue, 2 May 2017 07:07:39 +0000 (09:07 +0200)]
I like to throw exceptions instead of using if statements.
Mikael Nordfeldth [Tue, 2 May 2017 07:07:00 +0000 (09:07 +0200)]
File_redirection->getFile could never get the file anyway if $redir->file_id was empty...
Mikael Nordfeldth [Mon, 1 May 2017 19:18:04 +0000 (21:18 +0200)]
Show WebSub state on remote user profiles
Mikael Nordfeldth [Mon, 1 May 2017 19:17:22 +0000 (21:17 +0200)]
Introduce neat function getFeedSub() on Ostatus_profile
Mikael Nordfeldth [Mon, 1 May 2017 09:04:27 +0000 (11:04 +0200)]
Change mentions of PuSH to WebSub
WebSub is probably finalised before we make a release anyway. Here is
the official spec: https://www.w3.org/TR/websub/
Mostly just comments that have been changed. Some references to PuSH <0.4
are left because they actually refer to PuSH 0.3 and that's not WebSub...
The only actual code change that might affect anything is FeedSub->isPuSH()
but the only official plugin using that call was FeedPoller anyway...
Mikael Nordfeldth [Mon, 1 May 2017 08:34:51 +0000 (10:34 +0200)]
Debugging log fix.
Mikael Nordfeldth [Mon, 1 May 2017 08:27:21 +0000 (10:27 +0200)]
I think this will stop my daemons from endlessly looping
I got this which ate all my memory:
queuedaemon.php:10733] HTTPClient: HTTP HEAD https://drive.google.com/file/d/*masked*/view?usp=sharing - 200 OK
queuedaemon.php:10733] Checking for remote URL metadata for https://drive.google.com/file/d/*masked*/view?usp=sharing
queuedaemon.php:10733] HTTPClient: HTTP GET https://drive.google.com/file/d/*masked*/view?usp=sharing - 200 OK
queuedaemon.php:10733] Trying to discover an oEmbed endpoint using link headers.
queuedaemon.php:10733] Could not find an oEmbed endpoint using link headers, trying OpenGraph from HTML.
queuedaemon.php:10733] HTTPClient: HTTP HEAD https://drive.google.com/file/d/*masked*/view?usp=sharing&usp=embed_facebook - 200 OK
queuedaemon.php:10733] Checking for remote URL metadata for https://drive.google.com/file/d/*masked*/view?usp=sharing&usp=embed_facebook
queuedaemon.php:10733] HTTPClient: HTTP GET https://drive.google.com/file/d/*masked*/view?usp=sharing&usp=embed_facebook - 200 OK
queuedaemon.php:10733] Trying to discover an oEmbed endpoint using link headers.
queuedaemon.php:10733] Could not find an oEmbed endpoint using link headers, trying OpenGraph from HTML.
queuedaemon.php:10733] HTTPClient: HTTP HEAD https://drive.google.com/file/d/*masked*/view?usp=sharing&usp=embed_facebook&usp=embed_facebook - 200 OK
queuedaemon.php:10733] Checking for remote URL metadata for https://drive.google.com/file/d/*masked*/view?usp=sharing&usp=embed_facebook&usp=embed_facebook
queuedaemon.php:10733] HTTPClient: HTTP GET https://drive.google.com/file/d/*masked*/view?usp=sharing&usp=embed_facebook&usp=embed_facebook - 200 OK
queuedaemon.php:10733] Trying to discover an oEmbed endpoint using link headers.
queuedaemon.php:10733] Could not find an oEmbed endpoint using link headers, trying OpenGraph from HTML.
...ad nauseam.
Mikael Nordfeldth [Mon, 1 May 2017 05:40:16 +0000 (07:40 +0200)]
Message to end-user on why FeedSub failed.
Mikael Nordfeldth [Mon, 1 May 2017 05:39:56 +0000 (07:39 +0200)]
Clearing cache showed my layout fail!
Mikael Nordfeldth [Sun, 30 Apr 2017 18:32:10 +0000 (20:32 +0200)]
Makes the attachment button stay within the form area...
Mikael Nordfeldth [Sun, 30 Apr 2017 08:37:21 +0000 (10:37 +0200)]
Show what you're replying to in the web interface
Mikael Nordfeldth [Sun, 30 Apr 2017 08:29:16 +0000 (10:29 +0200)]
ensureHub on 422 status code (Superfeedr error on non-existing topic)
Mikael Nordfeldth [Sun, 30 Apr 2017 07:46:15 +0000 (09:46 +0200)]
More debugging info for FeedSub PuSH self-healing
Mikael Nordfeldth [Sun, 30 Apr 2017 07:33:06 +0000 (09:33 +0200)]
syntax fix (throw _new_ *Exception)
Mikael Nordfeldth [Sun, 30 Apr 2017 07:31:16 +0000 (09:31 +0200)]
Make sure we don't receiveFeed() in the case of that exception
Mikael Nordfeldth [Sun, 30 Apr 2017 07:20:08 +0000 (09:20 +0200)]
Update huburi for FeedSub if PuSH signature is invalid
This because some remote server might have used third party PuSH hubs
but switch and we don't know about it.
Possible risks here are of course MITM that could force us to rediscover
PuSH hubs from a feed they control, but that currently feels ... meh.
Mikael Nordfeldth [Sat, 29 Apr 2017 12:48:46 +0000 (14:48 +0200)]
Confirm_address::getByAddress not getAddress
Also fixed the error handling to match the function call.
Mikael Nordfeldth [Thu, 27 Apr 2017 07:24:12 +0000 (09:24 +0200)]
Separate ensureHub into function in FeedSub
Mikael Nordfeldth [Thu, 27 Apr 2017 07:23:45 +0000 (09:23 +0200)]
Escaping a URI in common_debug call
Mikael Nordfeldth [Wed, 26 Apr 2017 21:21:13 +0000 (23:21 +0200)]
LRDD blacklisted URL test
Mikael Nordfeldth [Wed, 26 Apr 2017 21:21:13 +0000 (23:21 +0200)]
LRDD blacklisted URL test
Mikael Nordfeldth [Wed, 26 Apr 2017 20:41:59 +0000 (22:41 +0200)]
Test URLs against blacklist also on PuSH subscriptions.
Mikael Nordfeldth [Wed, 26 Apr 2017 20:41:59 +0000 (22:41 +0200)]
Test URLs against blacklist also on PuSH subscriptions.
Mikael Nordfeldth [Wed, 26 Apr 2017 20:11:28 +0000 (22:11 +0200)]
allowed_schemes was misspelled
Mikael Nordfeldth [Wed, 26 Apr 2017 20:11:28 +0000 (22:11 +0200)]
allowed_schemes was misspelled
Mikael Nordfeldth [Tue, 25 Apr 2017 19:11:49 +0000 (21:11 +0200)]
Moving form to its own file as we do nowadays
Mikael Nordfeldth [Tue, 25 Apr 2017 19:03:43 +0000 (21:03 +0200)]
Modernise some function calls etc, to newer GNU social standards
Mikael Nordfeldth [Tue, 25 Apr 2017 18:43:31 +0000 (20:43 +0200)]
Blacklist plugin enabled by default (bug fixes will come)
Mikael Nordfeldth [Tue, 25 Apr 2017 18:42:10 +0000 (20:42 +0200)]
Use getByID nistead of getKV for Feedsub in PushInQueueHandler
Mikael Nordfeldth [Sat, 22 Apr 2017 10:29:53 +0000 (12:29 +0200)]
Try https first on URL mention lookup
Mikael Nordfeldth [Sat, 22 Apr 2017 10:12:27 +0000 (12:12 +0200)]
Somewhat simpler regex. Thanks acct:takeshitakenji@gs.kawa-kun.com
Mikael Nordfeldth [Sat, 22 Apr 2017 09:47:29 +0000 (11:47 +0200)]
Merge branch 'master' into nightly
No change should be made, just making sure...
Mikael Nordfeldth [Sat, 22 Apr 2017 09:45:24 +0000 (11:45 +0200)]
Fix URL mention regular expression FOR REALZ
Mikael Nordfeldth [Sat, 22 Apr 2017 09:45:24 +0000 (11:45 +0200)]
Fix URL mention regular expression FOR REALZ
Mikael Nordfeldth [Sat, 22 Apr 2017 09:15:55 +0000 (11:15 +0200)]
Fix URL mention regular expression in OStatusPlugin
Mikael Nordfeldth [Sat, 22 Apr 2017 09:07:38 +0000 (11:07 +0200)]
Domain name regular expression into lib/framework.php
cherry-pick-merge
Mikael Nordfeldth [Sat, 22 Apr 2017 08:58:14 +0000 (10:58 +0200)]
Split up OStatusPlugin preg functions so they can be reused
cherry-pick-merge
Mikael Nordfeldth [Sat, 22 Apr 2017 08:55:24 +0000 (10:55 +0200)]
A bit more instructive debugging
Mikael Nordfeldth [Sat, 22 Apr 2017 08:51:03 +0000 (10:51 +0200)]
New domain regexp for WebFinger matching.
Mikael Nordfeldth [Sat, 22 Apr 2017 09:15:55 +0000 (11:15 +0200)]
Fix URL mention regular expression in OStatusPlugin
Mikael Nordfeldth [Sat, 22 Apr 2017 09:07:38 +0000 (11:07 +0200)]
Domain name regular expression into lib/framework.php
Mikael Nordfeldth [Sat, 22 Apr 2017 08:58:14 +0000 (10:58 +0200)]
Split up OStatusPlugin preg functions so they can be reused
Mikael Nordfeldth [Sat, 22 Apr 2017 08:55:24 +0000 (10:55 +0200)]
A bit more instructive debugging
Mikael Nordfeldth [Sat, 22 Apr 2017 08:51:03 +0000 (10:51 +0200)]
New domain regexp for WebFinger matching.
Mikael Nordfeldth [Fri, 21 Apr 2017 07:31:27 +0000 (09:31 +0200)]
Import backlog on new subscription.
Danger is when importing a new feed that may be maliciously crafted
to contain a zillion entries.
Mikael Nordfeldth [Fri, 21 Apr 2017 06:08:39 +0000 (08:08 +0200)]
Split OStatusPlugin FeedSub receive into two parts
FeedSub::receive now only handles the PuSH verification
FeedSub::receiveFeed is protected and only parses+imports feed XML
Mikael Nordfeldth [Wed, 19 Apr 2017 09:41:34 +0000 (11:41 +0200)]
Less frightening interface on remote subscription
Instead of an error message in a red box about being unable to find the
profile, you get the title "Remote subscription" and no error message.
Mikael Nordfeldth [Wed, 19 Apr 2017 09:37:43 +0000 (11:37 +0200)]
Empty resource would throw exception
The "+ Remote" link on your profile page broke because of exception.
Mikael Nordfeldth [Wed, 19 Apr 2017 09:41:34 +0000 (11:41 +0200)]
Less frightening interface on remote subscription
Instead of an error message in a red box about being unable to find the
profile, you get the title "Remote subscription" and no error message.
Mikael Nordfeldth [Wed, 19 Apr 2017 09:37:43 +0000 (11:37 +0200)]
Empty resource would throw exception
The "+ Remote" link on your profile page broke because of exception.
Mikael Nordfeldth [Sun, 16 Apr 2017 09:04:58 +0000 (11:04 +0200)]
Merge branch 'master' into nightly
Mikael Nordfeldth [Sun, 16 Apr 2017 09:04:17 +0000 (11:04 +0200)]
Merge branch 'master' of git.gnu.io:gnu/gnu-social
Mikael Nordfeldth [Sun, 16 Apr 2017 09:01:16 +0000 (11:01 +0200)]
Handle normalized acct: URIs in ostatussub
Mastodon sent the proper acct: URI and not just 'user@domain' when
using the remote subscribe functionality.
Mikael Nordfeldth [Sun, 16 Apr 2017 09:01:16 +0000 (11:01 +0200)]
Handle normalized acct: URIs in ostatussub
Mastodon sent the proper acct: URI and not just 'user@domain' when
using the remote subscribe functionality.
Mikael Nordfeldth [Sun, 9 Apr 2017 10:13:53 +0000 (12:13 +0200)]
Give remote Atom URL for remote profile view
Mikael Nordfeldth [Thu, 6 Apr 2017 11:34:57 +0000 (13:34 +0200)]
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
Mikael Nordfeldth [Thu, 6 Apr 2017 11:23:33 +0000 (13:23 +0200)]
E-mail should contain full acct uri too (FancyName)
mmn [Thu, 6 Apr 2017 10:23:12 +0000 (10:23 +0000)]
Merge branch 'fixtests' into 'nightly'
Got Old Unittests Passing
See merge request !131
mmn [Thu, 6 Apr 2017 10:20:41 +0000 (10:20 +0000)]
Merge branch 'fix-twitterbridge' into 'nightly'
Fix TwitterBridge imported notices not displaying in timeline
See merge request !130
Mikael Nordfeldth [Thu, 6 Apr 2017 09:45:58 +0000 (11:45 +0200)]
Show full acct uri as html title on link mouseover
mmn [Thu, 6 Apr 2017 09:23:51 +0000 (09:23 +0000)]
Merge branch 'genericons-fix' into 'nightly'
Fix paths for Genericons font
See merge request !132
mmn [Thu, 6 Apr 2017 09:20:38 +0000 (09:20 +0000)]
Merge branch 'atom-post' into 'nightly'
Add support for Atom entry when posting status
See merge request !135