From 5c68e32abb5369809ba941c89142a273ffa8ab8d Mon Sep 17 00:00:00 2001 From: Mark Beamer Jr <markbeamerjr@gmail.com> Date: Sun, 22 Sep 2019 01:56:36 -0400 Subject: [PATCH 1/3] Strip @ prefix subquery Signed-off-by: Mark Beamer Jr <markbeamerjr@gmail.com> --- server/controllers/lighthouse.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/controllers/lighthouse.js b/server/controllers/lighthouse.js index 97c2262..b549119 100644 --- a/server/controllers/lighthouse.js +++ b/server/controllers/lighthouse.js @@ -98,6 +98,14 @@ function getResults (input) { }, }, }; + // Try prefix query without an @ if it exists + const channelIdentifier = { + 'prefix': { + 'name': { + 'value': escapedQuery.replace(/^@/gi, ''), 'boost': 50, + }, + }, + }; const splitName = () => { let queries = []; @@ -271,6 +279,7 @@ function getResults (input) { conBoost, funcScoreClaimWeight, funcScoreChannelWeight, + channelIdentifier, ], 'must': [ ...dynamicFilters(), From bad9b3b2c20e4745f6a224606d650b9b205b1a2e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 29 Dec 2019 13:09:10 +0000 Subject: [PATCH 2/3] Bump handlebars from 4.1.2 to 4.5.3 Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.1.2 to 4.5.3. - [Release notes](https://github.com/wycats/handlebars.js/releases) - [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md) - [Commits](https://github.com/wycats/handlebars.js/compare/v4.1.2...v4.5.3) Signed-off-by: dependabot[bot] <support@github.com> --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index dda837f..f9f445e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5336,9 +5336,9 @@ "dev": true }, "handlebars": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.1.2.tgz", - "integrity": "sha512-nvfrjqvt9xQ8Z/w0ijewdD/vvWDTOweBUm96NTr66Wfvo1mJenBLwcYmPs3TIBP5ruzYGD7Hx/DaM9RmhroGPw==", + "version": "4.5.3", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.5.3.tgz", + "integrity": "sha512-3yPecJoJHK/4c6aZhSvxOyG4vJKDshV36VHp0iVCDVh7o9w2vwi3NSnL2MMPj3YdduqaBcu7cGbggJQM0br9xA==", "requires": { "neo-async": "^2.6.0", "optimist": "^0.6.1", From af6b17a6a708b698ea5a05766107508fe81d8e7b Mon Sep 17 00:00:00 2001 From: YULIUS KURNIAWAN KRISTIANTO <yuliuskristianto9@gmail.com> Date: Mon, 3 Feb 2020 05:57:30 +0700 Subject: [PATCH 3/3] Update LICENSE --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index eb958df..a293e51 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2017-2019 LBRY Inc +Copyright (c) 2017-2020 LBRY Inc Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: