Differences From
Artifact [e0d52a1828]:
1 1 -- vim: ft=terra
2 2 local util = lib.util
3 3 local secmode = lib.enum { 'public', 'private', 'lockdown', 'isolate' }
4 4 local pstring = lib.mem.ptr(int8)
5 5 local struct srv
6 6 local struct cfgcache {
7 - secret: lib.mem.ptr(int8)
7 + secret: pstring
8 8 pol_sec: secmode.t
9 9 pol_reg: bool
10 10 credmgd: bool
11 11 maxupsz: intptr
12 - instance: lib.mem.ptr(int8)
12 + instance: pstring
13 13 overlord: &srv
14 + ui_cue_staff: pstring
15 + ui_cue_founder: pstring
14 16 ui_hue: uint16
15 17 nranks: uint16
16 18 maxinvites: uint16
17 19 master: uint64
18 20 }
19 21 local struct srv {
20 22 sources: lib.mem.ptr(lib.store.source)
................................................................................
23 25 cfg: cfgcache
24 26 id: rawstring
25 27 }
26 28
27 29 terra cfgcache:free() -- :/
28 30 self.secret:free()
29 31 self.instance:free()
32 + self.ui_cue_staff:free()
33 + self.ui_cue_founder:free()
30 34 end
31 35
32 36 terra srv:post_enum_author_uid(uid: uint64, r: lib.store.range): lib.mem.vec(lib.mem.ptr(lib.store.post))
33 37 var all: lib.mem.vec(lib.mem.ptr(lib.store.post)) all:init(64)
34 38 for i=0,self.sources.ct do var src = self.sources.ptr + i
35 39 if src.handle ~= nil and src.backend.timeline_instance_fetch ~= nil then
36 40 var lst = src:post_enum_author_uid(uid,r)
................................................................................
812 816 if not wma then
813 817 lib.warn('the webmaster specified in the configuration store does not seem to exist or is not known to this instance; preceding as if no master defined. if the master is a remote user, you can rectify this with the `actor ',{webmaster.ptr,webmaster.ct},' instantiate` and `conf refresh` commands')
814 818 else
815 819 self.master = wma(0).id
816 820 wma:free()
817 821 end
818 822 end
823 +
824 + self.ui_cue_staff = self.overlord:conf_get('ui-profile-cue-staff')
825 + self.ui_cue_founder = self.overlord:conf_get('ui-profile-cue-master')
819 826 end
820 827
821 828 return {
822 829 overlord = srv;
823 830 convo = convo;
824 831 route = route;
825 832 secmode = secmode;
826 833 }