Some more fields that will be needed for the user query
This commit is contained in:
parent
4cc52cef6b
commit
3ab4e20fe6
2 changed files with 7 additions and 1 deletions
|
@ -1560,6 +1560,9 @@ CREATE VIEW `post-view` AS SELECT
|
||||||
`contact`.`thumb` AS `contact-avatar`,
|
`contact`.`thumb` AS `contact-avatar`,
|
||||||
`contact`.`network` AS `contact-network`,
|
`contact`.`network` AS `contact-network`,
|
||||||
`contact`.`blocked` AS `contact-blocked`,
|
`contact`.`blocked` AS `contact-blocked`,
|
||||||
|
`contact`.`readonly` AS `contact-readonly`,
|
||||||
|
`contact`.`pending` AS `contact-pending`,
|
||||||
|
`contact`.`rel` AS `contact-rel`,
|
||||||
`contact`.`uid` AS `contact-uid`,
|
`contact`.`uid` AS `contact-uid`,
|
||||||
IF (`item`.`network` IN ('apub', 'dfrn', 'dspr', 'stat'), true, `contact`.`writable`) AS `writable`,
|
IF (`item`.`network` IN ('apub', 'dfrn', 'dspr', 'stat'), true, `contact`.`writable`) AS `writable`,
|
||||||
`contact`.`self` AS `self`,
|
`contact`.`self` AS `self`,
|
||||||
|
|
|
@ -106,6 +106,9 @@ return [
|
||||||
"contact-avatar" => ["contact", "thumb"],
|
"contact-avatar" => ["contact", "thumb"],
|
||||||
"contact-network" => ["contact", "network"],
|
"contact-network" => ["contact", "network"],
|
||||||
"contact-blocked" => ["contact", "blocked"],
|
"contact-blocked" => ["contact", "blocked"],
|
||||||
|
"contact-readonly" => ["contact", "readonly"],
|
||||||
|
"contact-pending" => ["contact", "pending"],
|
||||||
|
"contact-rel" => ["contact", "rel"],
|
||||||
"contact-uid" => ["contact", "uid"],
|
"contact-uid" => ["contact", "uid"],
|
||||||
"writable" => "IF (`item`.`network` IN ('apub', 'dfrn', 'dspr', 'stat'), true, `contact`.`writable`)",
|
"writable" => "IF (`item`.`network` IN ('apub', 'dfrn', 'dspr', 'stat'), true, `contact`.`writable`)",
|
||||||
"self" => ["contact", "self"],
|
"self" => ["contact", "self"],
|
||||||
|
|
Loading…
Reference in a new issue