Commit Graph

166 Commits

Author SHA1 Message Date
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
Mikael Nordfeldth
6083c43863 More dynamic plugin directory lookup
I installed Qvitter in local/plugins/ rather than plugins/ which
meant that some statically assigned paths were incorrect. This patch
will instead find the current Qvitter directory when the plugin is
loaded and use that when finding ctime for files on the filesystem.
2014-11-28 13:54:58 +01:00
Hannes Mannerheim
ef51b7da86 move faq to own file and faq menu item in classic 2014-11-28 01:16:34 +01:00
Hannes Mannerheim
71493aa8d0 removes a php warning 2014-11-28 00:01:25 +01:00
Mikael Nordfeldth
a9423265fd force the config to be an array if empty
...or we get a bunch of "invalid argument" to the foreach statement.
2014-11-27 23:40:07 +01:00
Hannes Mannerheim
8303c557dd easier updates 2014-11-27 21:04:41 +01:00
Hannes Mannerheim
76ea483a2a fix glitch with switching between new and classic 2014-11-27 12:54:56 +01:00
Hannes Mannerheim
019fdbd8c9 remove spam in php error log, sry 2014-11-25 01:58:30 +01:00
Hannes Mannerheim
2950f0a23b v4. design, img upload, avatar, bg img, etc etc 2014-11-24 13:47:45 +01:00
Hannes Mannerheim
7d4139df13 if qvitter is opt-out, disable the default register page 2014-10-31 00:28:06 +01:00
Hannes Mannerheim
0c9bf23e80 various bugfixes 2014-10-05 14:07:31 +02:00
Hannes Mannerheim
45adaa560a thumbnails now work, queet box bugfix, qvitter compact format removed 2014-10-02 19:24:54 +02:00
Hannes Mannerheim
ac2d8d27a1 "follows you" badge in profile card 2014-09-30 14:52:41 +02:00
Hannes Mannerheim
cc3eb5fdda site notice, notifications, etc 2014-09-24 23:20:35 +02:00
Hannes Mannerheim
45b794591e url shortener, design etc 2014-09-20 02:53:10 +02:00
Hannes Mannerheim
46962e619c easier installation, cover photos now work with 1.1.1-alpha2 2014-09-09 20:48:44 +02:00
Hannes Mannerheim
0ab31ff1e3 profile editing and cover photo 2014-06-01 21:51:28 +02:00
Hannes Mannerheim
13b8de40c7 languages, autosuggestion etc
chinese, galician, mention autosuggestion (goodbye codemirror!),
compact json api for some actions (for faster scrolling), optimized
png:s, etc
2014-05-27 20:40:51 +02:00
Hannes Mannerheim
b2f4209780 new more compact api json format for some streams 2014-05-23 14:13:38 +02:00
Hannes Mannerheim
4bbb4601e4 better login (logout didn't work properly) 2014-05-16 12:36:30 +02:00
Hannes Mannerheim
bbf123b664 v3: major change
qvitter is now a plugin
2014-05-14 09:46:07 +02:00