Browse Source

Fixed hashtags

Closes #1014
master
Igor Zhukov 9 years ago
parent
commit
5e0242816f
  1. 7
      app/js/controllers.js
  2. 2
      app/js/lib/ng_utils.js

7
app/js/controllers.js

@ -804,6 +804,13 @@ angular.module('myApp.controllers', ['myApp.i18n'])
$scope.$on('ui_dialogs_search_clear', $scope.searchClear); $scope.$on('ui_dialogs_search_clear', $scope.searchClear);
if (!$scope.noMessages) {
$scope.$on('dialogs_search', function (e, data) {
$scope.search.query = data.query || '';
$scope.toggleSearch();
});
}
var searchTimeoutPromise; var searchTimeoutPromise;
function getDialogs(force) { function getDialogs(force) {
var curJump = ++jump; var curJump = ++jump;

2
app/js/lib/ng_utils.js

@ -1181,7 +1181,7 @@ angular.module('izhukov.utils', [])
var markdownRegExp = /(^|\s)(````?)([\s\S]+?)(````?)([\s\.,:?!;]|$)|(^|\s)`([^\n]+?)`([\s\.,:?!;]|$)/; var markdownRegExp = /(^|\s)(````?)([\s\S]+?)(````?)([\s\.,:?!;]|$)|(^|\s)`([^\n]+?)`([\s\.,:?!;]|$)/;
var siteHashtags = { var siteHashtags = {
Telegram: '#/im?q=%23{1}', Telegram: 'tg://search_hashtag?hashtag={1}',
Twitter: 'https://twitter.com/hashtag/{1}', Twitter: 'https://twitter.com/hashtag/{1}',
Instagram: 'https://instagram.com/explore/tags/{1}/', Instagram: 'https://instagram.com/explore/tags/{1}/',
'Google Plus': 'https://plus.google.com/explore/{1}' 'Google Plus': 'https://plus.google.com/explore/{1}'

Loading…
Cancel
Save