mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 12:49:34 +02:00
don't filter out the place you're at anymore
This commit is contained in:
parent
a7e3fad23e
commit
9954380ce3
1 changed files with 2 additions and 4 deletions
|
@ -156,10 +156,8 @@ Column {
|
||||||
function makeFilteredStoryProcessor() { // answer a function(storyData) that adds it to suggestions if it matches
|
function makeFilteredStoryProcessor() { // answer a function(storyData) that adds it to suggestions if it matches
|
||||||
var words = filter.toUpperCase().split(/\s+/).filter(identity);
|
var words = filter.toUpperCase().split(/\s+/).filter(identity);
|
||||||
function suggestable(story) {
|
function suggestable(story) {
|
||||||
if (story.action === 'snapshot') {
|
// We could filter out places we don't want to suggest, such as those where (story.place_name === AddressManager.placename) or (story.username === Account.username).
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
return story.place_name !== AddressManager.placename; // Not our entry, but do show other entry points to current domain.
|
|
||||||
}
|
}
|
||||||
function matches(story) {
|
function matches(story) {
|
||||||
if (!words.length) {
|
if (!words.length) {
|
||||||
|
|
Loading…
Reference in a new issue