]> git.mxchange.org Git - quix0rs-gnu-social.git/commit
Refactor subs_* functions for remote use
authorEvan Prodromou <evan@status.net>
Fri, 19 Feb 2010 13:16:45 +0000 (08:16 -0500)
committerEvan Prodromou <evan@status.net>
Fri, 19 Feb 2010 13:16:45 +0000 (08:16 -0500)
commit52e8aa798a23b2832a748189b42c3bc77d65c9c7
treedf17d3b118d0649bbcba7414e6c4af23af29ce44
parent48edade751cca3ac7363808264a76c470a520528
Refactor subs_* functions for remote use

The subs_* functions in subs.php have made a lot of assumptions
about users versus profiles. I've refactored the functions to
be methods of the Subscription class instead, and to use Profile
objects throughout.

Some of the checks for blocks or existing subscriptions depended
on users or profiles, so I've moved those methods around a bit.

I've left stubs for the subs_* functions until we get time to replace
them.
classes/Profile.php
classes/Subscription.php
classes/User.php
lib/subs.php