Commit Graph

75 Commits

Author SHA1 Message Date
Hannes Mannerheim
80b9ca7fec finally found a fix for #92 2015-06-16 20:20:28 +02:00
Hannes Mannerheim
4610d596d9 thumnails for youtube-videos was not added when doing this.. 2015-06-15 17:58:47 +02:00
Mikael Nordfeldth
216750e084 makeRegex now static public in GNU social 2015-06-12 17:16:04 +02:00
Mikael Nordfeldth
113f7d04a7 These lines didn't do anything that the following line didn't just overwrite 2015-06-12 17:10:40 +02:00
Mikael Nordfeldth
92dace9f2a Removing last ?> since it is unnecessary
It might just end up throwing out whitespace to the PHP parser, causing
errors like "headers already sent" etc. because output has already begun.
2015-06-12 16:56:48 +02:00
Mikael Nordfeldth
18877f77f0 setting in_reply_to_profileurl with exception handling 2015-06-12 16:56:25 +02:00
Hannes Mannerheim
dd14e3977e image popups 2015-06-09 23:42:41 +02:00
Mikael Nordfeldth
5c0733eba1 $logged_in_user was changed to $scoped before 2015-06-07 12:02:30 +02:00
Hannes Mannerheim
f4d565c282 version 2015-06-07 10:57:25 +02:00
Mikael Nordfeldth
c0e1327288 Move some stuff to separate Plugin initialize() function
conflicted because of previously not static declaration of QvitterPlugin::settings
2015-06-07 10:15:35 +02:00
Mikael Nordfeldth
f9a683f8a1 onPluginVersion should have type 'array' for the arg 2015-06-07 10:14:33 +02:00
Mikael Nordfeldth
2a57bbaf84 don't use uninitialized $valid_code 2015-06-07 10:14:28 +02:00
Mikael Nordfeldth
acfed2353c QvitterPlugin::settings should be declared static
since it exclusively gets called statically and it otherwise generates
PHP Strict Standards warnings.
2015-06-07 10:04:53 +02:00
Hannes Mannerheim
9e45bcab47 better support for custom sprites 2015-06-06 16:20:26 +02:00
Mikael Nordfeldth
d1005c67a9 No need to check logged in user
It's always the notice's author we want to check this for anyway.

I kept getting errors like, which are now fixed:
   Trying to get property of non-object in /srv/www/vhosts/se/umeahackerspace/social/%/htdocs/local/plugins/Qvitter/QvitterPlugin.php on line 594

I guess it might also screw up (somehow?) if some future awesome
notice handling thing decided to run the StartNoticeDistribute event
when the session is not currently used by the notice's author. But
that's a bit far-fetched.
2015-06-04 20:21:49 +02:00
Mikael Nordfeldth
cc989fae6e $_GET['p'] is not always set (like when using PATH_INFO)
This uses the function in GNU social index.php which does the exact same
filtering as desired by Qvitter, but in a compatible way with both the
querystring and PATH_INFO rewrite rules for webservers.
2015-06-03 23:25:55 +02:00
Hannes Mannerheim
150bb1b9d6 better handling of profile cards, work in progress 2015-06-02 23:45:46 +02:00
Hannes Mannerheim
d9385c68bd the quitter favicon had become low-res somehow 2015-06-02 15:22:09 +02:00
Mikael Nordfeldth
2c24b705de Correct error log message 2015-06-02 14:44:44 +02:00
Mikael Nordfeldth
d69453f846 Exception handling for notice parent fetching 2015-06-02 14:04:22 +02:00
Mikael Nordfeldth
c4683bb3ba $notice->id is always set here!
Added assert() call to possibly review bugs in the future.
2015-06-02 13:31:35 +02:00
Hannes Mannerheim
a6618b8dcc enablewelcometext = true as usual 2015-05-29 17:43:13 +02:00
Hannes Mannerheim
b3f890053e readme update 2015-05-29 17:40:45 +02:00
Hannes Mannerheim
ce0100ee1e better handling of user designs, and a new custom welcome text option 2015-05-29 17:30:03 +02:00
Hannes Mannerheim
dc3d1d2fb7 fixes bug on quitter.se, where getUrl returned 400 error for activity notices (which don't have url:s) 2015-05-25 12:17:38 +02:00
Hannes Mannerheim
c3e2a0d19a implementation of #157 and no notifications from blocked profiles 2015-05-19 16:51:42 +02:00
Hannes Mannerheim
c2c664517d no duplicate mentions, thx @moshpirit #174 2015-05-19 14:11:33 +02:00
Hannes Mannerheim
f87660d36d patch by email that fixes a "PHP Fatal error: Call to a member function getEnclosure() on a non-object" error 2015-04-30 12:50:28 +02:00
Hannes Mannerheim
c5bb5506da Merge pull request #134 from mmn/align_to_gnusocial_nightly
make sure the status array has 'repeated' key
2015-03-13 08:39:58 +01:00
Mikael Nordfeldth
9af89a0e0e make sure the status array has 'repeated' key
I think the event handler should be doublechecked on more than one
point. For example the call arguments don't seem to include an array
argument which can include an option called "include_user". Also the
$scoped value is not necessarily always a Profile, it can be null too.
2015-03-13 00:00:27 +01:00
Hannes Mannerheim
4e39d59885 maybe solves #131 2015-03-07 22:55:39 +01:00
Mikael Nordfeldth
b135a51d6a ->url to ->getUrl() for File_thumbnail and Notice
In older versions ->getUrl() actually just returns ->url, but newer
versions of GNU social have some logic which takes care of certain
issues with outdated URLs stored in the database tables etc.
2015-03-04 12:54:42 +01:00
Hannes Mannerheim
1e36c997f0 conversation, repeat and fav caching, new api for getting favs&repeats in same request, etc 2015-02-25 21:16:24 +01:00
Mikael Nordfeldth
1d2dbef9fb EndSetApiUser is not always a User
GNU social will however make sure that whenever the event is called, User
_has_ been set, but for anyone not stalking the nightly branch they will
have less messages like this in their PHP error log:

PHP Notice:  Trying to get property of non-object in [...]/Qvitter/QvitterPlugin.php on line 810
2015-02-13 01:02:03 +01:00
llebegue
e6eedc7454 Merge README.md with upstream 2015-02-04 21:46:06 +01:00
llebegue
9ba4dede19 Issue #58 : conditional welcome text 2015-02-04 21:40:56 +01:00
Hannes Mannerheim
98cd4ed66a possibility to block ip addresses from registration 2015-02-04 14:44:04 +01:00
Hannes Mannerheim
ef3af7fe8d thx @mmn 2015-02-01 02:57:18 +01:00
Hannes Mannerheim
f88be7bf6f removes php warning 2015-01-28 01:19:36 +01:00
llebegue
2ae3d05606 External parameter for favicon.ico 2015-01-27 21:22:17 +01:00
Hannes Mannerheim
8d2d4d7cca new notifications check moved to http header to reduce polling 2015-01-26 17:13:34 +01:00
Hannes Mannerheim
139017332e try getting thumb url from db if getthumbnail fails #91 2015-01-26 01:47:45 +01:00
Mikael Nordfeldth
b5a980f082 getThumbnail will generate one if it doesn't exist yet
...so we don't have to generate directly on creation.
2015-01-26 00:30:01 +01:00
Hannes Mannerheim
8c38287b0c terms of use, and video thumbnail fix 2015-01-25 19:05:09 +01:00
Hannes Mannerheim
dab96e99a9 #89 extended to work with rotation and thumbnails 2015-01-23 16:28:41 +01:00
Hannes Mannerheim
50aab959ad revert #89 2015-01-23 13:20:30 +01:00
Mikael Nordfeldth
22e4c00e23 Use GNU social upload API instead of selfmade for images etc. 2015-01-23 02:08:21 +01:00
llebegue
d15ec44392 Fix #41 Image background as external parameter 2015-01-21 21:03:38 +01:00
Hannes Mannerheim
3f81c0816a give follows a bogus notice id so they appear in notifications 2015-01-21 17:49:59 +01:00
Hannes Mannerheim
de436e8b49 don't add notifications for activity type notices 2015-01-20 15:47:58 +01:00