Commit Graph

170 Commits

Author SHA1 Message Date
Mikael Nordfeldth
1a8cb88014 Err, do it in a more consistent order compared with other code 2016-01-02 16:16:57 +01:00
Mikael Nordfeldth
1eceb0888a Change 'is_activity' to the inverse, 'is_post_verb' 2016-01-02 16:11:46 +01:00
Hannes Mannerheim
02eced7291 check if email is already in use when registering + some rtl css fixes 2015-12-14 21:01:27 +01:00
Hannes Mannerheim
4b66bcfe04 lists 2015-11-29 20:19:23 +01:00
Hannes Mannerheim
962c592e80 unrepeat support for older gnu social versions (i.e. quitter.se) 2015-11-25 18:26:13 +01:00
Hannes Mannerheim
072c411ac2 big change in how streams are changed, and lots of bugfixes 2015-11-23 00:24:33 +01:00
Hannes Mannerheim
598b619037 null to avoid a "must be an instance of Profile" error when logged out 2015-11-19 21:34:51 +01:00
Hannes Mannerheim
cff9c53f78 small fixes 2015-11-19 18:32:46 +01:00
Hannes Mannerheim
25447c2527 API for getting a profile's blocked profiles 2015-11-18 15:32:20 +01:00
Hannes Mannerheim
5ed9d729ea notifications marked as seen when faving, repeating and expanding an notice #306 2015-11-18 00:24:57 +01:00
Hannes Mannerheim
fd43133f0f stream menus, mark all notifications as read, opt-out from certain notifications 2015-11-17 22:48:28 +01:00
Hannes Mannerheim
8a76a28a66 handle conversation links, fixes #269 2015-11-16 18:13:48 +01:00
Hannes Mannerheim
76f579b84a possibility for other plugins to add streams and translations to qvitter 2015-10-19 18:47:24 +02:00
Hannes Mannerheim
cba85a12f7 remove the cache_remote_attachments qvitter-feature, since the StoreRemoteMedia plugin is now available 2015-10-04 21:48:23 +02:00
Hannes Mannerheim
e97bbd2df5 hides the new native gnu social delete-notices #281 2015-10-04 20:15:03 +02:00
Mikael Nordfeldth
96e718a5c3 Disable qvitter-delete-notice if ActivityModeration plugin exists 2015-10-03 16:52:35 +02:00
Hannes Mannerheim
dcd4f55c69 get text attachments directly instead of via the api 2015-09-21 00:58:11 +02:00
Hannes Mannerheim
df99f9bbaa better stream handling (hopefully..), and hover not hoover 2015-09-18 01:42:52 +02:00
Hannes Mannerheim
3eebbb34ef remove profile popups (being replaced with hoovercards), tooltip fixes, ostatus uri in api user arrays 2015-09-14 17:49:06 +02:00
Hannes Mannerheim
22b720b08f option to cache remote images, direct links to image thumbnails, session cleanup to allow for simultaneous api requests 2015-09-13 01:59:02 +02:00
Hannes Mannerheim
76dcc86ffc stop xss 2015-09-06 01:21:43 +02:00
Hannes Mannerheim
89b82becf4 tooltips, bookmark streams and clear browsing history 2015-08-31 23:53:09 +02:00
Hannes Mannerheim
721cb83201 add new group memberships to suggestion array, and delete when leaving group. also use group's proper id not group's profile id 2015-08-26 01:40:29 +02:00
Hannes Mannerheim
45b0019750 various fixes for the new group suggestion 2015-08-26 00:11:31 +02:00
Hannes Mannerheim
976be81ce9 suggest group mentions, and always post to correct group even user is member of multiple groups with same nickname 2015-08-25 23:27:08 +02:00
Hannes Mannerheim
3a7f8ab84d fixes #96 2015-08-25 13:27:14 +02:00
Hannes Mannerheim
dc189e1662 fixes this bug: https://quitter.se/notice/3962192 thx @saziusquitter 2015-08-22 21:30:26 +02:00
Hannes Mannerheim
8c817d0979 fixes #243 2015-08-05 13:49:42 +02:00
Hannes Mannerheim
f465a8aea7 fixes #238 2015-07-12 13:27:45 +02:00
Hannes Mannerheim
916fb82d65 linkify by default #236 2015-07-11 22:25:34 +02:00
Hannes Mannerheim
37a30cbe5c moving rerouting check from initialize() to onRouterInitialized() 2015-07-11 15:09:39 +02:00
Hannes Mannerheim
840a72dec7 hello #224 2015-07-11 01:13:18 +02:00
Hannes Mannerheim
04c242450d the hide_replies pref is returning 1 not true 2015-07-11 01:06:46 +02:00
Mikael Nordfeldth
f1ba999006 Don't examplify with a string boolean
there's strict type comparison later on (===, three equals) for true and false
2015-07-10 23:40:40 +02:00
Hannes Mannerheim
f099e37d13 fumbling in the dark #224 2015-07-10 23:27:20 +02:00
Hannes Mannerheim
db42f1186f more for #224 2015-07-10 21:51:20 +02:00
Hannes Mannerheim
5f24802df0 #224... 2015-07-10 21:47:37 +02:00
Hannes Mannerheim
a255b9fba6 some more guessing about issue #224 2015-07-10 21:39:15 +02:00
Hannes Mannerheim
51cda6f1da logic that i understand.. 2015-07-10 19:15:08 +02:00
Hannes Mannerheim
68e20d9ff1 maybe fix for #224 2015-07-10 15:30:24 +02:00
Hannes Mannerheim
bdf669e2ed adds feature requested in #138 2015-07-07 00:52:26 +02:00
Hannes Mannerheim
0c79026f77 human readable text-field for qvitter's new deleted-notice activity 2015-07-02 15:00:57 +02:00
Hannes Mannerheim
e3da8af8e2 fave number in non-expanded queets 2015-06-24 15:34:44 +02:00
Hannes Mannerheim
1c8d539237 hide&delete remote notices from qvitter-instances 2015-06-18 20:55:46 +02:00
Hannes Mannerheim
fdda2e4e0d no autoplay for animated gifs, better handling of youtube and webm videos
also solves @moshpirit's issue in #190, but when there's a mix of local
images and videos gnusocial messes up the order...
2015-06-17 00:44:18 +02:00
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
Hannes Mannerheim
bbbbfb2920 prevent corrupt notifications without notice_id 2015-01-20 15:14:46 +01:00
Hannes Mannerheim
4e6744098d should remove php warning in issue #69 2015-01-20 14:15:01 +01:00
Hannes Mannerheim
778d75e6f0 makes invites work for opt-out sites 2015-01-19 18:01:10 +01:00
Joshua Judson Rosen
751a9503d7 Fix path to toggleqvitter.js
Plugin::path() needs its argument to actually be a file that exists
relative to the plugin base directory so that it can determine
whether the plugin is rooted in / or /local.

So don't include HTTP GET args in the path() argument--append them after
getting the value back from path().
2014-12-04 22:48:55 -05:00
Hannes Mannerheim
179a49cfa1 more more dynamic plugin directory lookup 2014-11-28 15:54:23 +01:00