parsav  Diff

Differences From Artifact [3939510d0a]:

To Artifact [7cc6c4467d]:


1




























-- vim: ft=terra





























>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
-- vim: ft=terra
local m = {
	agentkind = lib.enum {
		'user', 'circle'
	};
}

struct m.agent {
	kind: m.agentkind.t
	id: uint64
}

terra m.eval(expr: lib.str.t, agent: m.agent)

end

terra lib.store.post:save(ctupdate: bool)
-- this post handles the messy details of registering a post's
-- circles and actors, and increments the edit-count if ctupdate
-- is true, which is should be in almost all cases.
	if ctupdate then
		self.chgcount = self.chgcount + 1
		self.edited = lib.osclock.time(nil)
	end
	-- TODO extract mentions from body, circles from acl
	self.source:post_save(self)
end

return m