Skip to content
This repository has been archived by the owner on Jul 8, 2021. It is now read-only.

Add very basic "event" handling in Portal.js; Build sameAs on it #157

Merged
merged 2 commits into from
Nov 23, 2017

Conversation

0x0ade
Copy link
Member

@0x0ade 0x0ade commented Nov 23, 2017

Additionally replaces a few indexOfs with has_hash, fixes zombie posts hanging around and removes $rotonde from the Portals tab (those fixes could be separated and applied to master, but aren't critical).

Portal now has got a basic onparse handler array, which should contain functions in the format of (json) => {...; return true / false;}, true meaning that the portal will be registered, false meaning that the portal will be ignored. this is the portal the handler's running against at the moment.

The connection queue now accepts objects with url and optional oncreate and onparse handlers. oncreate allows setting is_remote = true; early enough.

@cblgh cblgh merged commit 4ddd694 into Rotonde:cblgh/feature/sameAs Nov 23, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants