mirror of
https://github.com/ChronosX88/psyced.git
synced 2024-11-14 14:31:02 +00:00
fix it for now
This commit is contained in:
parent
75467224ae
commit
6e5c5b98db
@ -216,10 +216,3 @@ varargs string make_query_string(mapping params, int sort) {
|
|||||||
return q;
|
return q;
|
||||||
}
|
}
|
||||||
|
|
||||||
object checkToken(mapping query) {
|
|
||||||
string nick;
|
|
||||||
object user;
|
|
||||||
if (nick = query["user"]) user = find_person(nick);
|
|
||||||
if (user && user->validToken(query["token"])) return user;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
@ -15,9 +15,7 @@
|
|||||||
|
|
||||||
inherit NET_PATH "place/owned";
|
inherit NET_PATH "place/owned";
|
||||||
|
|
||||||
int qHistoryPersistentLimit() {
|
int qHistoryPersistentLimit() { return 0; }
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
canPost(snicker) { return qAide(snicker); }
|
canPost(snicker) { return qAide(snicker); }
|
||||||
canReply(snicker) { return qAide(snicker); }
|
canReply(snicker) { return qAide(snicker); }
|
||||||
@ -532,6 +530,14 @@ void displayFooter() {
|
|||||||
w("_HTML_tail_threads", "</body></html>");
|
w("_HTML_tail_threads", "</body></html>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static object checkToken(mapping query) {
|
||||||
|
string nick;
|
||||||
|
object user;
|
||||||
|
if (nick = query["user"]) user = find_person(nick);
|
||||||
|
if (user && user->validToken(query["token"])) return user;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
htget(prot, query, headers, qs, data) {
|
htget(prot, query, headers, qs, data) {
|
||||||
mapping entrymap;
|
mapping entrymap;
|
||||||
mixed target;
|
mixed target;
|
||||||
|
Loading…
Reference in New Issue
Block a user