]>
git.mxchange.org Git - quix0rs-gnu-social.git/log
Mikael Nordfeldth [Wed, 2 Mar 2016 11:41:56 +0000 (12:41 +0100)]
Some rights one does not have if either sandboxed or silenced
Mikael Nordfeldth [Wed, 2 Mar 2016 11:33:06 +0000 (12:33 +0100)]
Introduce a ConfigException
Mikael Nordfeldth [Wed, 2 Mar 2016 11:18:16 +0000 (12:18 +0100)]
Don't set is_local=LOCAL_NONPUBLIC on sandboxed user notices
Let's decide whether they are nonpublic by testing them when the notice
is shown instead.
Mikael Nordfeldth [Wed, 2 Mar 2016 10:50:50 +0000 (11:50 +0100)]
Make the public streams ModeratedNoticeStream (hide sandboxed users etc.)
Which streams should be put under ModeratedNoticeStream is probably open
to debate. But at least the public ones should hide the posts from users
that are sandboxed.
Mikael Nordfeldth [Wed, 2 Mar 2016 10:40:43 +0000 (11:40 +0100)]
Stricted typing + protected on FilteringNoticeStream->filter
Mikael Nordfeldth [Wed, 2 Mar 2016 09:49:33 +0000 (10:49 +0100)]
No 'acct:' in FancyName please.
Mikael Nordfeldth [Tue, 1 Mar 2016 23:13:28 +0000 (00:13 +0100)]
Some changes since getFancyName() is longer with full acct: URI
Mikael Nordfeldth [Tue, 1 Mar 2016 23:04:31 +0000 (00:04 +0100)]
User->hasBlocked typing
Mikael Nordfeldth [Tue, 1 Mar 2016 22:53:36 +0000 (23:53 +0100)]
Translation changes, use FancyName in email subject
Mikael Nordfeldth [Tue, 1 Mar 2016 22:48:32 +0000 (23:48 +0100)]
Make Profile->getFancyUrl() somewhat better on fallback
It tries to get a referential identifier apart from the fullname trying
with acct: URI, profile URL and lastly URI.
Mikael Nordfeldth [Tue, 1 Mar 2016 22:37:38 +0000 (23:37 +0100)]
Make Profile->getFancyName() return including the acct URI
Mikael Nordfeldth [Tue, 1 Mar 2016 22:36:47 +0000 (23:36 +0100)]
Strict typing for mail_notify_attn
Mikael Nordfeldth [Tue, 1 Mar 2016 17:20:50 +0000 (18:20 +0100)]
Iterate through input=file attachments (not multi yet)
Mikael Nordfeldth [Tue, 1 Mar 2016 15:30:00 +0000 (16:30 +0100)]
Nothing interesting was made in this commit.
Mikael Nordfeldth [Tue, 1 Mar 2016 14:00:52 +0000 (15:00 +0100)]
Use another method of detecting unspecified defaultImage size
Mikael Nordfeldth [Tue, 1 Mar 2016 13:51:47 +0000 (14:51 +0100)]
Consistent behaviour for ScopingNoticeStream $scoped
We don't guess the current profile anymore if the value of the profile === -1
Also sets $this->scoped for all ScopingNoticeStream inheritors, which just
like in an Action can be null if we're not scoped in any way (logged in).
Mikael Nordfeldth [Tue, 1 Mar 2016 12:10:18 +0000 (13:10 +0100)]
Make javascript XHR timeout a variable.
SN.V.xhrTimeout = [time in milliseconds];
Mikael Nordfeldth [Sun, 28 Feb 2016 19:50:45 +0000 (20:50 +0100)]
Woops, undefined $type there.
mmn [Sun, 28 Feb 2016 18:45:31 +0000 (18:45 +0000)]
Merge branch 'delete_group_logo' into 'nightly'
Now we can delete a group logo.
I added a function of deleting a group logo.
I'm not sure we should delete group's avatar through Avatar::deleteFromProfile like on line 426:
```php
Avatar::deleteFromProfile($this->group->getProfile());
```
See merge request !84
mmn [Sun, 28 Feb 2016 18:42:36 +0000 (18:42 +0000)]
Merge branch 'fix-author-fallback' into 'nightly'
Fix author fallback
Previously if there was no discernable author the nickname "Array"
would end up used. This was a bug, obviously. It is fixed now.
See merge request !111
Mikael Nordfeldth [Sun, 28 Feb 2016 18:40:16 +0000 (19:40 +0100)]
No need to set $threads = 0 on the line before it's set ;)
mmn [Sun, 28 Feb 2016 18:36:54 +0000 (18:36 +0000)]
Merge branch 'nightly' into 'nightly'
Enable configuration option for number of threads used by queuedaemons.php
Could we change the script for queuedaemon.php to using a configuration setting if not arguments such as -t or --threads is set?
Example in configuration file:
```
$config['queue']['threads'] = 15; //Spawning 15 threads for handling the queue
```
See merge request !105
Mikael Nordfeldth [Sun, 28 Feb 2016 18:34:48 +0000 (19:34 +0100)]
Refactoring ApiStatusesDestroyAction
Mikael Nordfeldth [Sun, 28 Feb 2016 18:23:13 +0000 (19:23 +0100)]
Change to more recent code style in ApiStatusesDestroyAction
Mikael Nordfeldth [Sun, 28 Feb 2016 18:19:46 +0000 (19:19 +0100)]
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into mmn_fixes
mmn [Sun, 28 Feb 2016 18:19:11 +0000 (18:19 +0000)]
Merge branch 'mods_can_delete_others_notices_branch' into 'nightly'
moderators can delete others' notices using the api
See merge request !112
Mikael Nordfeldth [Sun, 28 Feb 2016 12:31:21 +0000 (13:31 +0100)]
Verify loaded config function, must be completed further.
Mikael Nordfeldth [Sun, 28 Feb 2016 12:30:47 +0000 (13:30 +0100)]
HTMLPurifier cache settings, put stuff in subdir of get_sys_temp_dir()
Mikael Nordfeldth [Sun, 28 Feb 2016 12:16:52 +0000 (13:16 +0100)]
Edited the list of allowed rel values
abjectio [Sat, 27 Feb 2016 19:37:03 +0000 (20:37 +0100)]
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
hannes [Sat, 27 Feb 2016 01:03:24 +0000 (01:03 +0000)]
moderators can delete others' notices using the api
Stephen Paul Weber [Fri, 26 Feb 2016 22:06:04 +0000 (22:06 +0000)]
Fix author fallback
Previously if there was no discernable author the nickname "Array"
would end up used. This was a bug, obviously. It is fixed now.
Mikael Nordfeldth [Fri, 26 Feb 2016 21:37:26 +0000 (22:37 +0100)]
Ostatus_source filled no purpose whatsoever
Mikael Nordfeldth [Fri, 26 Feb 2016 15:10:03 +0000 (16:10 +0100)]
Don't auto-silence other users by IP by default
Mikael Nordfeldth [Fri, 26 Feb 2016 13:53:12 +0000 (14:53 +0100)]
Slightly more correct log message in index.php
Mikael Nordfeldth [Fri, 26 Feb 2016 13:46:26 +0000 (14:46 +0100)]
Resolve relative URLs (assuming URI.Base==notice URL)
The real way to do this would be to get the xml:base property from
the Atom feed but it's probably not there in any posts we see today.
Mikael Nordfeldth [Fri, 26 Feb 2016 13:13:46 +0000 (14:13 +0100)]
Woops, forgot to skip the / in path
Mikael Nordfeldth [Fri, 26 Feb 2016 13:10:32 +0000 (14:10 +0100)]
Fiddling with merge request #98 to use internal routing functions
Mikael Nordfeldth [Fri, 26 Feb 2016 12:52:25 +0000 (13:52 +0100)]
Use mb_* and strict === comparison
mmn [Fri, 26 Feb 2016 12:49:10 +0000 (12:49 +0000)]
Merge branch 'foolproof_file_redirection_branch' into 'nightly'
Foolproof file redirection
This solves an issue when our internal /attachment/{file_id} links are shortened with an remote shorteners (which caused the /attachment/{file_id} links to be saved to the File table and a thumbnail of a thumbnail being generated)
See merge request !98
Mikael Nordfeldth [Fri, 26 Feb 2016 12:41:14 +0000 (13:41 +0100)]
Fix merge #101 by replacing a non-working Yahoo! link with Wikipedia
The link was meant to describe robots.txt crawl-delay info
mmn [Fri, 26 Feb 2016 12:38:26 +0000 (12:38 +0000)]
Merge branch 'rm-short-urls-docs' into 'nightly'
CONFIGURE: Replace short urls with their target
Transparency and resilience against shorteners going away.
See merge request !101
Mikael Nordfeldth [Fri, 26 Feb 2016 12:37:32 +0000 (13:37 +0100)]
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into mmn_fixes
Mikael Nordfeldth [Fri, 26 Feb 2016 12:35:53 +0000 (13:35 +0100)]
Jean Lucas mentioned that PEAR::Net_Socket was outdated
Updated Net_Socket to 1.0.14 (stable) was released on 2013-05-24
https://pear.php.net/package/Net_Socket
Mikael Nordfeldth [Fri, 26 Feb 2016 12:34:07 +0000 (13:34 +0100)]
Jean Lucas mentioned PEAR::Net_SMTP was outdated
Net_SMTP updated to 1.7.1 (stable) was released on 2015-09-07
https://pear.php.net/package/Net_SMTP
mmn [Fri, 26 Feb 2016 12:32:42 +0000 (12:32 +0000)]
Merge branch 'readme-plugins' into 'nightly'
Readme plugins
* Adds several plugin READMEs
They are pretty basic, but it's a start.
* Changes status.net/wiki URLs to git.gnu.io
The status.net wiki is dead.
See merge request !103
mmn [Fri, 26 Feb 2016 12:30:19 +0000 (12:30 +0000)]
Merge branch 'group-autocomplete' into 'nightly'
Fix !group autocomplete
"Call to undefined method User_group::getFullname"
See merge request !108
mmn [Fri, 26 Feb 2016 12:30:01 +0000 (12:30 +0000)]
Merge branch 'remove-openid' into 'nightly'
Fix: Cannot remove OpenID
OpenidsettingsAction::removeOpenID() was comparing and int with a string
so always displayed "That OpenID does not belong to you."
See merge request !107
Mikael Nordfeldth [Fri, 26 Feb 2016 00:11:20 +0000 (01:11 +0100)]
Make sure the saved Notice has an ID
Mikael Nordfeldth [Fri, 26 Feb 2016 00:04:59 +0000 (01:04 +0100)]
Use mb_strlen to see if something is an empty string
Mikael Nordfeldth [Thu, 25 Feb 2016 23:08:51 +0000 (00:08 +0100)]
Mentioning matches (@this too) now.
Mikael Nordfeldth [Thu, 25 Feb 2016 23:06:04 +0000 (00:06 +0100)]
User friendlieness in scripts/delete_notice.php
Mikael Nordfeldth [Thu, 25 Feb 2016 23:05:07 +0000 (00:05 +0100)]
Allow sgf files if they're recognized in mime search
They are Go game files used on lamatriz.org. Note that my server
doesn't actually recognize these files and can identify the mime type,
but my browser did for some reason.
Mikael Nordfeldth [Thu, 25 Feb 2016 21:32:07 +0000 (22:32 +0100)]
Commented on the mime extension matching regexp
Mikael Nordfeldth [Thu, 25 Feb 2016 21:31:45 +0000 (22:31 +0100)]
Try to get mime data before hashing (cpu intensive)
Mikael Nordfeldth [Thu, 25 Feb 2016 21:17:44 +0000 (22:17 +0100)]
syntax error
Mikael Nordfeldth [Thu, 25 Feb 2016 21:15:54 +0000 (22:15 +0100)]
Make uploads work properly if we accept _all_ attachment types
Also introduced $config['attachments']['extblacklist'] that can disable
certain file extensions (or rewrite them, for example php => phps)
Mikael Nordfeldth [Thu, 25 Feb 2016 19:13:39 +0000 (20:13 +0100)]
Merge branch 'master' into mmn_fixes
Mikael Nordfeldth [Thu, 25 Feb 2016 14:48:37 +0000 (15:48 +0100)]
Notice getRendered() can now be called on uninserted notices
Mikael Nordfeldth [Thu, 25 Feb 2016 11:32:33 +0000 (12:32 +0100)]
socialfy-your-domain made people think you needed manual interaction
I don't know why, but people started following those instructions for no
apparent reason and it ended up causing a bunch of federation issues or
homegrown cron script messes.
Maybe changing the name to "another" instead of "your" domain will make
people stop doing stuff randomly.
Mikael Nordfeldth [Thu, 25 Feb 2016 18:47:51 +0000 (19:47 +0100)]
Merge branch 'master' into mmn_fixes
Mikael Nordfeldth [Thu, 25 Feb 2016 18:46:17 +0000 (19:46 +0100)]
$metadata->thumbnail_url is not guaranteed to be set
We should probably have a separate class for this, so we can more
easily combine different technologies similar to oEmbed/OpenGraph.
Mikael Nordfeldth [Thu, 25 Feb 2016 18:46:17 +0000 (19:46 +0100)]
$metadata->thumbnail_url is not guaranteed to be set
We should probably have a separate class for this, so we can more
easily combine different technologies similar to oEmbed/OpenGraph.
Mikael Nordfeldth [Thu, 25 Feb 2016 14:48:37 +0000 (15:48 +0100)]
Notice getRendered() can now be called on uninserted notices
Mikael Nordfeldth [Thu, 25 Feb 2016 11:32:33 +0000 (12:32 +0100)]
socialfy-your-domain made people think you needed manual interaction
I don't know why, but people started following those instructions for no
apparent reason and it ended up causing a bunch of federation issues or
homegrown cron script messes.
Maybe changing the name to "another" instead of "your" domain will make
people stop doing stuff randomly.
Mikael Nordfeldth [Wed, 24 Feb 2016 18:34:12 +0000 (19:34 +0100)]
Correct comment on Notice->conversation in table schema
Chimo [Tue, 23 Feb 2016 01:33:25 +0000 (20:33 -0500)]
Fix !group autocomplete
"Call to undefined method User_group::getFullname"
Chimo [Wed, 24 Feb 2016 17:42:41 +0000 (12:42 -0500)]
Fix: Cannot remove OpenID
OpenidsettingsAction::removeOpenID() was comparing and int with a string
so always displayed "That OpenID does not belong to you."
Mikael Nordfeldth [Wed, 24 Feb 2016 15:48:44 +0000 (16:48 +0100)]
Include feeds in Link HTTP headers, for easier discovery
Mikael Nordfeldth [Wed, 24 Feb 2016 15:43:09 +0000 (16:43 +0100)]
Publish rel="me" in Link HTTP headers
Mikael Nordfeldth [Wed, 24 Feb 2016 15:42:54 +0000 (16:42 +0100)]
Allow easy fetching of rel="me" values
Mikael Nordfeldth [Wed, 24 Feb 2016 15:42:35 +0000 (16:42 +0100)]
Default to profile size in Avatar::defaultAvatar
Mikael Nordfeldth [Tue, 23 Feb 2016 23:19:27 +0000 (00:19 +0100)]
Use in_array instead. Now we get third party responses to contextually interesting threads
I think this solves much of the "third party conversation" issues, assuming involved parties
are using modern GNU social instances.
Mikael Nordfeldth [Tue, 23 Feb 2016 22:56:43 +0000 (23:56 +0100)]
Check the notice context for users in UsersalmonAction
Mikael Nordfeldth [Tue, 23 Feb 2016 22:50:57 +0000 (23:50 +0100)]
Properly attach activityobjects
For some reason they were written to ->object, which is incorrect as
we use the objects[] array (which usually just holds one entry though)
Mikael Nordfeldth [Tue, 23 Feb 2016 22:42:41 +0000 (23:42 +0100)]
Check that the user is in the context of a salmon slap
abjectio [Tue, 23 Feb 2016 20:13:58 +0000 (21:13 +0100)]
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
Mikael Nordfeldth [Tue, 23 Feb 2016 13:33:09 +0000 (14:33 +0100)]
getAliases should be only a list (numeric array)
Mikael Nordfeldth [Tue, 23 Feb 2016 13:15:08 +0000 (14:15 +0100)]
Let OpenID match against aliases (fix fancyurl stuff etc.)
Mikael Nordfeldth [Tue, 23 Feb 2016 13:00:59 +0000 (14:00 +0100)]
getAliases for Profile and Notice
Also move fancyurlfix into site-wide $config['fix']['fancyurls']
TODO: getByUri should make use of this directly I guess?
Mikael Nordfeldth [Mon, 22 Feb 2016 14:19:10 +0000 (15:19 +0100)]
Verify that authenticated API calls are made from our domain name.
Evil forms on other websites could otherwise potentially be configured
to have action="https://gnusocial.example/api/statuses/update.json" or
whatever. XHR is already blocked with CORS stuff.
Really, why do browsers allow cross domain POSTs at all? Sigh. The web.
Mikael Nordfeldth [Sun, 21 Feb 2016 19:05:32 +0000 (20:05 +0100)]
Make WebFinger fancyurlfix configurable
Mikael Nordfeldth [Sun, 21 Feb 2016 19:00:07 +0000 (20:00 +0100)]
WebFinger aliases with 'index.php/'
Mikael Nordfeldth [Sun, 21 Feb 2016 18:09:39 +0000 (19:09 +0100)]
Claim that we are the URL without index.php/ in webfinger response
Mikael Nordfeldth [Sun, 21 Feb 2016 18:01:37 +0000 (19:01 +0100)]
throw new, not just throw
Mikael Nordfeldth [Sun, 21 Feb 2016 17:48:48 +0000 (18:48 +0100)]
Let the WebFingerPlugin lookup profile resources with index.php/ too
Mikael Nordfeldth [Sun, 21 Feb 2016 17:48:18 +0000 (18:48 +0100)]
common_fake_local_fancy_url to remove index.php/ from a local URL
Mikael Nordfeldth [Sun, 21 Feb 2016 17:47:47 +0000 (18:47 +0100)]
Allow lookup of User->getByUri (throws NoResultException)
Mikael Nordfeldth [Sun, 21 Feb 2016 17:47:32 +0000 (18:47 +0100)]
Keep a unique set of WebFingerResource aliases
Mikael Nordfeldth [Thu, 18 Feb 2016 23:10:05 +0000 (00:10 +0100)]
Don't publish mbox_sha1sum in FOAF by default.
We say the email is private data, so reasonably we shouldn't reveal it
indirectly through a hash sum: http://xmlns.com/foaf/spec/#term_mbox_sha1sum
Mikael Nordfeldth [Wed, 17 Feb 2016 23:33:16 +0000 (00:33 +0100)]
Only show "public:site" in ToSelector if notice/allowprivate is true
Mikael Nordfeldth [Wed, 17 Feb 2016 23:32:09 +0000 (00:32 +0100)]
Put "Everyone" and "Everyone at [local instance]" at the top of ToSelector
Mikael Nordfeldth [Wed, 17 Feb 2016 23:13:59 +0000 (00:13 +0100)]
NoAcctUriException->profile not $e directly
Mikael Nordfeldth [Wed, 17 Feb 2016 23:05:09 +0000 (00:05 +0100)]
Sort ToSelector by AcctUri
Mikael Nordfeldth [Wed, 17 Feb 2016 22:44:15 +0000 (23:44 +0100)]
Use ToSelector choice again.
Mikael Nordfeldth [Wed, 17 Feb 2016 22:32:56 +0000 (23:32 +0100)]
Show notice feed URLs (and author)
Mikael Nordfeldth [Wed, 17 Feb 2016 22:05:44 +0000 (23:05 +0100)]
To-selector padlock only shown if site config notice/allowprivate is true
Mikael Nordfeldth [Wed, 17 Feb 2016 21:58:31 +0000 (22:58 +0100)]
By default, disallow users to set private_stream
Mikael Nordfeldth [Wed, 17 Feb 2016 21:48:16 +0000 (22:48 +0100)]
Describe that we don't allow empty fullnames.
Mikael Nordfeldth [Wed, 17 Feb 2016 21:43:45 +0000 (22:43 +0100)]
If profile fullname is 0 chars use nickname